X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diff-lib.c;h=92c0e39ad6f21e0511ee84052e2b762d6e447f61;hb=b9dcf846e20ed5287e239c9a0942c5d150081bab;hp=07f4e8106a51384d2236b182438472884c300da6;hpb=3545193735522f733fdb4e345f16ddf131e2007a;p=git.git diff --git a/diff-lib.c b/diff-lib.c index 07f4e8106..92c0e39ad 100644 --- a/diff-lib.c +++ b/diff-lib.c @@ -24,7 +24,7 @@ static int read_directory(const char *path, struct path_list *list) while ((e = readdir(dir))) if (strcmp(".", e->d_name) && strcmp("..", e->d_name)) - path_list_insert(xstrdup(e->d_name), list); + path_list_insert(e->d_name, list); closedir(dir); return 0; @@ -664,7 +664,7 @@ int run_diff_index(struct rev_info *revs, int cached) const char *tree_name; int match_missing = 0; - /* + /* * Backward compatibility wart - "diff-index -m" does * not mean "do not ignore merges", but totally different. */