]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid syntax-check failure from previous commit
authorCollin Funk <collin.funk1@gmail.com>
Wed, 14 Jan 2026 04:45:32 +0000 (20:45 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 14 Jan 2026 04:45:32 +0000 (20:45 -0800)
* src/copy-file-data.c (sparse_copy): Use nullptr instead of NULL.

src/copy-file-data.c

index a48d06b79d03b2a5807622ca6f7b9da4fd04cc6f..382a86ede3e9ffd4cc58633cf431d75786d04fb9 100644 (file)
@@ -148,7 +148,7 @@ sparse_copy (int src_fd, int dest_fd, char **abuf, idx_t buf_size,
           {
             /* Don’t treat EFBIG as a reportable error from copy_file_range.
                If the input is at EOF and the output position is 2**63 - 1,
-               copy_file_range (ifd, NULL, ofd, NULL, 2146435072, 0)
+               copy_file_range (ifd, nullptr, ofd, nullptr, 2146435072, 0)
                incorrectly fails with EFBIG.  Problem observed on Ubuntu 25.10
                x86-64 with Linux kernel 6.17.0-8-generic #8-Ubuntu.  */
             if (errno == EFBIG)