From f8f57dd76ba98793e131a88beb138a32d54e0aa9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 31 Jan 2011 20:55:34 +0100 Subject: cp: always initialize extent_copy's output parameter * src/copy.c (extent_copy): Otherwise it would be used uninitialized. --- src/copy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 { -- cgit v1.2.3-70-g09d2