summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Endsley <mendsley@gmail.com>2012-05-14 02:29:30 -0700
committerMatthew Endsley <mendsley@gmail.com>2012-05-14 02:29:30 -0700
commit02c0970f16178a1761a54a65ce80a6387c12491c (patch)
tree6ad1442b7e74a558daf6c52a512b32b30471b741
parent68453c9e9765d737f789470cd0bf3b98f3dce1af (diff)
downloadbsdiff-02c0970f16178a1761a54a65ce80a6387c12491c.tar.gz
gcc -O2 complains about unitiailized pos
-rw-r--r--bsdiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsdiff.c b/bsdiff.c
index ffa47a1..92867d8 100644
--- 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;