mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-04 15:49:42 +02:00
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.
This commit is contained in:
committed by
Pádraig Brady
parent
acdf4e99e6
commit
be6120b5cc
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user