diff options
author | René Scharfe <l.s.r@web.de> | 2020-10-11 19:03:28 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-12 22:25:14 +0300 |
commit | e30b1525fb017e86e08931a911f5451bf24176f5 (patch) | |
tree | 329664b34bbb539a400797e72d63a7308b5681b2 /builtin/log.c | |
parent | d4a392452e292ff924e79ec8458611c0f679d6d4 (diff) |
grep: handle deref_tag() returning NULL
deref_tag() can return NULL. Exit gracefully in that case instead
of blindly dereferencing the return value.
.name shouldn't ever be NULL, but grep_object() handles that case
explicitly, so let's be defensive here as well and show the broken
object's ID if it happens to lack a name after all.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/log.c')
0 files changed, 0 insertions, 0 deletions