diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-04-08 23:22:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-08 23:22:05 -0700 |
commit | f7af75777fd5a217d43acb2098cf043a73c20b01 (patch) | |
tree | f19af42d6785fa427437250f8125c7fe9f6fceef /list-objects.c | |
parent | Merge branch 'jc/maint-1.6.0-blame-s' into maint-1.6.1 (diff) | |
parent | process_{tree,blob}: Remove useless xstrdup calls (diff) | |
download | tgif-f7af75777fd5a217d43acb2098cf043a73c20b01.tar.xz |
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0:
process_{tree,blob}: Remove useless xstrdup calls
Diffstat (limited to 'list-objects.c')
-rw-r--r-- | list-objects.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/list-objects.c b/list-objects.c index c8b8375e49..dd243c7c66 100644 --- a/list-objects.c +++ b/list-objects.c @@ -23,7 +23,6 @@ static void process_blob(struct rev_info *revs, if (obj->flags & (UNINTERESTING | SEEN)) return; obj->flags |= SEEN; - name = xstrdup(name); add_object(obj, p, path, name); } @@ -78,7 +77,6 @@ static void process_tree(struct rev_info *revs, if (parse_tree(tree) < 0) die("bad tree object %s", sha1_to_hex(obj->sha1)); obj->flags |= SEEN; - name = xstrdup(name); add_object(obj, p, path, name); me.up = path; me.elem = name; |