gcc -O2 complains about unitiailized pos
authorMatthew Endsley <mendsley@gmail.com>
Mon, 14 May 2012 09:29:30 +0000 (02:29 -0700)
committerMatthew Endsley <mendsley@gmail.com>
Mon, 14 May 2012 09:29:30 +0000 (02:29 -0700)
bsdiff.c

index ffa47a1..92867d8 100644 (file)
--- a/bsdiff.c
+++ b/bsdiff.c
@@ -252,7 +252,7 @@ static int bsdiff_internal(const struct bsdiff_request req)
        buffer = req.buffer;
 
        /* Compute the differences, writing ctrl as we go */
-       scan=0;len=0;
+       scan=0;len=0;pos=0;
        lastscan=0;lastpos=0;lastoffset=0;
        while(scan<req.newsize) {
                oldscore=0;