blame.c
14.2 KB
-
Fix segfault when calling git_blame_buffer() · 62d59467
This change makes sure that the hunk is not null before trying to dereference it. This avoids segfaults, especially when blaming against a modified buffer (i.e. the index). Fixes: #5443
lhchavez committed