diff options
author | Jim Meyering <meyering@redhat.com> | 2011-01-31 20:55:34 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-01-31 20:55:34 +0100 |
commit | f8f57dd76ba98793e131a88beb138a32d54e0aa9 (patch) | |
tree | d38734b0b6b1d75f30192b51cd0a259217a2ede9 /src | |
parent | 43d739e99c508a7c0fdfabc3c1aae844b029766f (diff) | |
download | coreutils-f8f57dd76ba98793e131a88beb138a32d54e0aa9.tar.xz |
cp: always initialize extent_copy's output parameter
* src/copy.c (extent_copy): Otherwise it would be used uninitialized.
Diffstat (limited to 'src')
-rw-r--r-- | src/copy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/copy.c b/src/copy.c index 8ba09e042..04c678d16 100644 --- a/src/copy.c +++ b/src/copy.c @@ -323,6 +323,7 @@ extent_copy (int src_fd, int dest_fd, char *buf, size_t buf_size, extent_scan_init (src_fd, &scan); + *require_normal_copy = false; bool wrote_hole_at_eof = true; do { |