Commit 5e12ce11 authored by Andrew Tridgell's avatar Andrew Tridgell

fix segv bug in --progress handling

parent 166aa723
......@@ -119,10 +119,11 @@ static void matched(int f,struct sum_struct *s,struct map_struct *buf,
else
last_match = offset;
if (buf)
if (buf) {
show_progress(last_match, buf->file_size);
if (i == -1) end_progress(buf->file_size);
if (i == -1) end_progress(buf->file_size);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment