summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-01-31 20:55:34 +0100
committerJim Meyering <meyering@redhat.com>2011-01-31 20:55:34 +0100
commitf8f57dd76ba98793e131a88beb138a32d54e0aa9 (patch)
treed38734b0b6b1d75f30192b51cd0a259217a2ede9 /src
parent43d739e99c508a7c0fdfabc3c1aae844b029766f (diff)
downloadcoreutils-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.c1
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
{