Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/compress



Module Name:    src
Committed By:   dsl
Date:           Wed Apr  5 20:24:38 UTC 2006

Modified Files:
        src/usr.bin/compress: compress.c

Log Message:
Rework the way that files are closed and unlinked on error.
In particular avoid calling fclose() again once it has failed.
Also multply 'oreg' by 2 once we modify the file - so we know when to
unlink it on error.
Fixes Coverty CIDs 2535 and 2536


To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 src/usr.bin/compress/compress.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index