diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2011-07-14 11:56:23 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-07-14 11:56:23 +0100 |
commit | be6120b5ccc02f4a9a0216f9d43eabdeb5f0dba0 (patch) | |
tree | b8a9cee4a32c6a79af4f6f2b60aead39d02a281e /src | |
parent | acdf4e99e6c328017952e827e8cc1044da563c06 (diff) | |
download | coreutils-be6120b5ccc02f4a9a0216f9d43eabdeb5f0dba0.tar.xz |
maint: fix warning 'possible use of "=" where "==" was intended'
* src/mktemp.c: maint: avoid warning by using the comma operator
rather than an always-true conditional (as suggested by Eric Blake).
Reported by Joachim Schmitz in http://debbugs.gnu.org/9064.
Diffstat (limited to 'src')
-rw-r--r-- | src/mktemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mktemp.c b/src/mktemp.c index 2fe22b76b..e592176a7 100644 --- a/src/mktemp.c +++ b/src/mktemp.c @@ -344,7 +344,7 @@ main (int argc, char **argv) puts (dest_name); /* If we created a file, but then failed to output the file name, we should clean up the mess before failing. */ - if (!dry_run && (stdout_closed = true) && close_stream (stdout) != 0) + if (!dry_run && ((stdout_closed = true), close_stream (stdout) != 0)) { int saved_errno = errno; remove (dest_name); |