fix segv bug in --progress handling
authorAndrew Tridgell <tridge@samba.org>
Tue, 25 Jan 2000 13:16:42 +0000 (13:16 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 25 Jan 2000 13:16:42 +0000 (13:16 +0000)
match.c

diff --git a/match.c b/match.c
index 1c0e894..c0ae38c 100644 (file)
--- a/match.c
+++ b/match.c
@@ -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);
+       }
 }