diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2012-01-10 02:58:44 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2012-01-10 02:58:44 +0000 |
commit | c9515560358431ea4c061fbaebfd680e9dd2df10 (patch) | |
tree | 274efaa80d1aac791ea12bc4365edd717687da14 | |
parent | b4f7ea19362618b60636d33fee44728dbf960d42 (diff) |
Silence bogus warning when compiling with gcc46:
error: 'pos' may be used uninitialized in this function
Reviewed by: cperciva
Approved by: dim
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=229910
-rw-r--r-- | usr.bin/bsdiff/bsdiff/bsdiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/bsdiff/bsdiff/bsdiff.c b/usr.bin/bsdiff/bsdiff/bsdiff.c index 005ad4d16610..8b764da1de94 100644 --- a/usr.bin/bsdiff/bsdiff/bsdiff.c +++ b/usr.bin/bsdiff/bsdiff/bsdiff.c @@ -272,7 +272,7 @@ int main(int argc,char *argv[]) /* Compute the differences, writing ctrl as we go */ if ((pfbz2 = BZ2_bzWriteOpen(&bz2err, pf, 9, 0, 0)) == NULL) errx(1, "BZ2_bzWriteOpen, bz2err = %d", bz2err); - scan=0;len=0; + scan=0;len=0;pos=0; lastscan=0;lastpos=0;lastoffset=0; while(scan<newsize) { oldscore=0; |