From: Jim Meyering Date: Mon, 31 Jan 2011 19:55:34 +0000 (+0100) Subject: cp: always initialize extent_copy's output parameter X-Git-Tag: v8.10~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8f57dd76ba98793e131a88beb138a32d54e0aa9;p=thirdparty%2Fcoreutils.git cp: always initialize extent_copy's output parameter * src/copy.c (extent_copy): Otherwise it would be used uninitialized. --- diff --git a/src/copy.c b/src/copy.c index 8ba09e0424..04c678d164 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 {