cp: always initialize extent_copy's output parameter
authorJim Meyering <meyering@redhat.com>
Mon, 31 Jan 2011 19:55:34 +0000 (20:55 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 31 Jan 2011 19:55:34 +0000 (20:55 +0100)
* src/copy.c (extent_copy): Otherwise it would be used uninitialized.

src/copy.c

index 8ba09e0..04c678d 100644 (file)
@@ -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
     {