diff options
author | Russell Belfer <rb@github.com> | 2012-09-13 14:15:07 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-09-13 14:15:07 -0700 |
commit | 12b6af1718f6f2e1da02870f1a5f5817bed77c0c (patch) | |
tree | 4644e1db305b3fb183497b13de66b86b90f83a3a /src/diff_output.c | |
parent | 49d34c1c0c706eea09380b2165bb3ad4e506dc30 (diff) | |
download | libgit2-12b6af1718f6f2e1da02870f1a5f5817bed77c0c.tar.gz |
Forgot to reset hunk & line between files
The last change tweaked the way we use the hunk_curr pointer
during iteration, but failed to reset the value back to NULL
when switching files.
Diffstat (limited to 'src/diff_output.c')
-rw-r--r-- | src/diff_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/diff_output.c b/src/diff_output.c index 50e3cc1de..37cceff92 100644 --- a/src/diff_output.c +++ b/src/diff_output.c @@ -1285,8 +1285,9 @@ static void diffiter_do_unload_file(git_diff_iterator *iter) } iter->ctxt.delta = NULL; - iter->hunk_head = NULL; + iter->hunk_curr = iter->hunk_head = NULL; iter->hunk_count = 0; + iter->line_curr = NULL; } int git_diff_iterator_new( |