]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
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 8ba09e0424be7f17bf0dee5afcf52b2438aac29f..04c678d16408bdd28e46e759b44b13cf5eb2c272 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
     {