From: Paul Eggert Date: Sat, 4 Mar 2023 19:42:16 +0000 (-0800) Subject: split: style fix X-Git-Tag: v9.2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=788654dd82ec204ccdcb84cc20c7595d20a5e5a1;p=thirdparty%2Fcoreutils.git split: style fix * src/split.c (ofile_open): Avoid ‘if (! (a = b))’ style. --- diff --git a/src/split.c b/src/split.c index b0a7c70ffb..8550ef4420 100644 --- a/src/split.c +++ b/src/split.c @@ -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; }