1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

split: style fix

* src/split.c (ofile_open): Avoid ‘if (! (a = b))’ style.
This commit is contained in:
Paul Eggert
2023-03-04 11:42:16 -08:00
parent 40bf1591bb
commit 788654dd82

View File

@@ -1111,8 +1111,10 @@ ofile_open (of_t *files, idx_t i_check, idx_t nfiles)
}
files[i_check].ofd = fd;
if (!(files[i_check].ofile = fdopen (fd, "a")))
FILE *ofile = fdopen (fd, "a");
if (!ofile)
die (EXIT_FAILURE, errno, "%s", quotef (files[i_check].of_name));
files[i_check].ofile = ofile;
files[i_check].opid = filter_pid;
filter_pid = 0;
}