diff options
author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | 2008-02-18 21:47:59 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-18 19:25:26 -0800 |
commit | cc36934791f3857b62348b6a9e071cdf989a9177 (patch) | |
tree | ae201302e745a212ae376a5ffc83c1465152080f /reachable.c | |
parent | 172947e645a6c919efb78a246c919d0daaa674f0 (diff) | |
download | git-cc36934791f3857b62348b6a9e071cdf989a9177.tar.gz |
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>
Diffstat (limited to 'reachable.c')
-rw-r--r-- | reachable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reachable.c b/reachable.c index ddf39e556b..11499a60c4 100644 --- a/reachable.c +++ b/reachable.c @@ -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) |