Use is_absolute_path() in diff-lib.c, lockfile.c, setup.c, trace.c
[git/git.git] / lockfile.c
index 258fb3f..f45d3ed 100644 (file)
@@ -94,7 +94,7 @@ static char *resolve_symlink(char *p, size_t s)
                        return p;
                }
 
-               if (link[0] == '/') {
+               if (is_absolute_path(link)) {
                        /* absolute path simply replaces p */
                        if (link_len < s)
                                strcpy(p, link);