real_path: prevent redefinition of MAXSYMLINKS
[gitweb.git] / worktree.c
index f7869f8d6072c98c3e9be3387a9a3c19508e13ea..c90e0139855bd39343f262c557fd57daaa14650b 100644 (file)
@@ -255,7 +255,7 @@ struct worktree *find_worktree(struct worktree **list,
                return wt;
 
        arg = prefix_filename(prefix, strlen(prefix), arg);
-       path = xstrdup(real_path(arg));
+       path = real_pathdup(arg);
        for (; *list; list++)
                if (!fspathcmp(path, real_path((*list)->path)))
                        break;