coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: avoid syntax-check failure from previous commit


From: Collin Funk
Subject: [PATCH] maint: avoid syntax-check failure from previous commit
Date: Thu, 30 Oct 2025 22:11:56 -0700

I pushed this one since it is obvious.

-- 8< --

* src/sort.c (pipe_child): Use nullptr instead of NULL.
---
 src/sort.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sort.c b/src/sort.c
index 3bb5cc8dd..f1e7553f4 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -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)
-- 
2.51.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]