diff options
author | Russell Belfer <rb@github.com> | 2013-07-03 11:45:10 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-07-03 11:45:10 -0700 |
commit | 4ae29053d51968cbf49f30ae14e5405cbd9543cc (patch) | |
tree | 18f3b3e105345b0dcc9c9a99447a24c6a3af3a4e /src/diff.c | |
parent | 6bb7bff274be004768ccedf76643383494e2a9dc (diff) | |
parent | 9b6075b25fb6fef570dd29c2b797db8bc34cf0b1 (diff) | |
download | libgit2-4ae29053d51968cbf49f30ae14e5405cbd9543cc.tar.gz |
Merge pull request #1701 from yorah/fix/gh-1698
Fix segfault in git_status_foreach_ext()
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c index 26e117402..9e9528ef9 100644 --- a/src/diff.c +++ b/src/diff.c @@ -1273,7 +1273,7 @@ int git_diff__paired_foreach( git_vector_sort(&idx2wd->deltas); } } - else if (head2idx->opts.flags & GIT_DIFF_DELTAS_ARE_ICASE) + else if (head2idx != NULL && head2idx->opts.flags & GIT_DIFF_DELTAS_ARE_ICASE) strcomp = git__strcasecmp; for (i = 0, j = 0; i < i_max || j < j_max; ) { |