diff options
author | Jim Meyering <jim@meyering.net> | 2005-03-28 17:55:43 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-03-28 17:55:43 +0000 |
commit | 3fbb037ff8e2d0db0baf07ed0eef2d110ed30ad4 (patch) | |
tree | 578ea87caea883c4da3870cf1a9ce478c8226ce1 | |
parent | 87c01f7dcb4e945f42b072396c1403ff3bb37a6a (diff) | |
download | coreutils-3fbb037ff8e2d0db0baf07ed0eef2d110ed30ad4.tar.xz |
(copy_reg): Use NULL, not `0'.
-rw-r--r-- | src/copy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/copy.c b/src/copy.c index d9f497e9c..77bc69aa8 100644 --- a/src/copy.c +++ b/src/copy.c @@ -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) |