Skip to content

Commit

Permalink
process_tag: handle tag->tagged == NULL
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Martin Koegler authored and Junio C Hamano committed Feb 19, 2008
1 parent 172947e commit cc36934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reachable.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ static void process_tag(struct tag *tag, struct object_array *p, const char *nam

if (parse_tag(tag) < 0)
die("bad tag object %s", sha1_to_hex(obj->sha1));
add_object(tag->tagged, p, NULL, name);
if (tag->tagged)
add_object(tag->tagged, p, NULL, name);
}

static void walk_commit_list(struct rev_info *revs)
Expand Down

0 comments on commit cc36934

Please sign in to comment.