summaryrefslogtreecommitdiff
path: root/tests-clar/diff/diff_helpers.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-07-19 10:23:45 -0700
committerRussell Belfer <rb@github.com>2012-07-19 10:23:45 -0700
commit71d273583755c0a2b7f5d608f017f4586add51e4 (patch)
tree9a70607c88d126591a5fc7241987e5d410e3bf0f /tests-clar/diff/diff_helpers.c
parent5a8204f8a88c59c2cb07b93930834ef0a5aaf1fc (diff)
downloadlibgit2-71d273583755c0a2b7f5d608f017f4586add51e4.tar.gz
Fix bug with merging diffs with null options
A diff that is created with a NULL options parameter could result in a NULL prefix string, but diff merge was unconditionally strdup'ing it. I added a test to replicate the issue and then a new method that does the right thing with NULL values.
Diffstat (limited to 'tests-clar/diff/diff_helpers.c')
0 files changed, 0 insertions, 0 deletions