diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-10 02:58:44 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-10 02:58:44 +0000 |
commit | 9cf727d8f79f67dfa30a1ae05161607bf6ab7151 (patch) | |
tree | 274efaa80d1aac791ea12bc4365edd717687da14 /usr.bin | |
parent | 988368040652cc2c1de4ae3b058ed129dd6a671e (diff) | |
download | FreeBSD-src-9cf727d8f79f67dfa30a1ae05161607bf6ab7151.zip FreeBSD-src-9cf727d8f79f67dfa30a1ae05161607bf6ab7151.tar.gz |
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
Diffstat (limited to 'usr.bin')
-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 005ad4d..8b764da 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; |