mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(copy_reg): Use NULL, not `0'.
This commit is contained in:
1 parent
87c01f7dcb
commit
3fbb037ff8
1 file changed
+3
-3
+3
-3
@@ -337,7 +337,7 @@ copy_reg (const char *src_path, const char *dst_path,
|
||||
|
||||
n_read_total += n_read;
|
||||
|
||||
ip = 0;
|
||||
ip = NULL;
|
||||
if (make_holes)
|
||||
{
|
||||
buf[n_read] = 1; /* Sentinel to stop loop. */
|
||||
@@ -370,9 +370,9 @@ copy_reg (const char *src_path, const char *dst_path,
|
||||
}
|
||||
else
|
||||
/* Clear to indicate that a normal write is needed. */
|
||||
ip = 0;
|
||||
ip = NULL;
|
||||
}
|
||||
if (ip == 0)
|
||||
if (ip == NULL)
|
||||
{
|
||||
size_t n = n_read;
|
||||
if (full_write (dest_desc, buf, n) != n)
|
||||
|
||||
Reference in new issue
Block a user