process_tag: handle tag->tagged == NULL
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Martin Koegler committed
Feb 18, 2008 at 21:47 UTC
cc36934791f3857b62348b6a9e071cdf989a9177
1 file changed
+2
-1
reachable.c
+2
-1
@@ -79,7 +79,8 @@ static void process_tag(struct tag *tag, struct object_array *p, const char *nam
79
80
if (parse_tag(tag) < 0)
81
die("bad tag object %s", sha1_to_hex(obj->sha1));
82
- add_object(tag->tagged, p, NULL, name);
82
+ if (tag->tagged)
83
+ add_object(tag->tagged, p, NULL, name);
84
}
85
86
static void walk_commit_list(struct rev_info *revs)