Skip to content

Commit

Permalink
Merge branch 'maint-1.6.0' into maint-1.6.1
Browse files Browse the repository at this point in the history
* maint-1.6.0:
  process_{tree,blob}: Remove useless xstrdup calls
  • Loading branch information
Junio C Hamano committed Apr 9, 2009
2 parents bb11eb3 + de551d4 commit f7af757
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions list-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion reachable.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ static void process_tree(struct tree *tree,
obj->flags |= SEEN;
if (parse_tree(tree) < 0)
die("bad tree object %s", sha1_to_hex(obj->sha1));
name = xstrdup(name);
add_object(obj, p, path, name);
me.up = path;
me.elem = name;
Expand Down

0 comments on commit f7af757

Please sign in to comment.