diff options
author | se <se@FreeBSD.org> | 2013-05-24 18:54:52 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 2013-05-24 18:54:52 +0000 |
commit | eded42d0e523cfa40d1c00d1d1a01eb15f4a48cf (patch) | |
tree | bf61893d33a6e4fabf5a172871b5c1bffcb6b016 /usr.bin/patch/util.c | |
parent | 6436670995875e6f283ae1e440c7a620b6eff675 (diff) | |
download | FreeBSD-src-eded42d0e523cfa40d1c00d1d1a01eb15f4a48cf.zip FreeBSD-src-eded42d0e523cfa40d1c00d1d1a01eb15f4a48cf.tar.gz |
The error handling for writes to the target file could lead to the final
fclose() being skipped. Fix this by using boolean "&" and "|" instead of
short-cut operators "&&" and "||".
While here, increment the last part of the version string. The reason is
the fixed output file selection logic in pch.c, which was committed as
r250943, yesterday.
Reviewed by: pfg
Diffstat (limited to 'usr.bin/patch/util.c')
-rw-r--r-- | usr.bin/patch/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/patch/util.c b/usr.bin/patch/util.c index 28a3cb0..c19918b 100644 --- a/usr.bin/patch/util.c +++ b/usr.bin/patch/util.c @@ -412,7 +412,7 @@ checked_in(char *file) void version(void) { - fprintf(stderr, "patch 2.0-12u8 FreeBSD\n"); + fprintf(stderr, "patch 2.0-12u9 FreeBSD\n"); my_exit(EXIT_SUCCESS); } |