]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid syntax-check failure from previous commit
authorCollin Funk <collin.funk1@gmail.com>
Fri, 31 Oct 2025 05:05:20 +0000 (22:05 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Fri, 31 Oct 2025 05:05:20 +0000 (22:05 -0700)
* src/sort.c (pipe_child): Use nullptr instead of NULL.

src/sort.c

index 3bb5cc8dd48d35ccd9d45e160313633efba976a9..f1e7553f4746f186b5e446250a4b5de568b26586 100644 (file)
@@ -1071,8 +1071,8 @@ pipe_child (pid_t *pid, int pipefds[2], int tempfd, bool decompress,
      implementations/emulations of posix_spawn we get only a
      generic (fatal) error from the child in that case.  */
   resolved_compress_program =
-    find_in_given_path (compress_program, getenv ("PATH"), NULL, false);
-  if (resolved_compress_program == NULL)
+    find_in_given_path (compress_program, getenv ("PATH"), nullptr, false);
+  if (resolved_compress_program == nullptr)
     return errno;
   compress_program_to_free = nullptr;
   if (resolved_compress_program != compress_program)