diff.c
30.9 KB
-
Fix diff crash when last item is untracked dir · 79ef3be4
When the last item in a diff was an untracked directory that only contained ignored items, the loop to scan the contents would run off the end of the iterator and dereference a NULL pointer. This includes a test that reproduces the problem and a fix.
Russell Belfer committed