coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] cp: always initialize extent_copy's output parameter


From: Jim Meyering
Subject: [PATCH] cp: always initialize extent_copy's output parameter
Date: Mon, 31 Jan 2011 22:44:30 +0100

Here's another bug fix:

>From f8f57dd76ba98793e131a88beb138a32d54e0aa9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 31 Jan 2011 20:55:34 +0100
Subject: [PATCH] cp: always initialize extent_copy's output parameter

* src/copy.c (extent_copy): Otherwise it would be used uninitialized.
---
 src/copy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/copy.c b/src/copy.c
index 8ba09e0..04c678d 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
     {
--
1.7.3.5.44.g960a



reply via email to

[Prev in Thread] Current Thread [Next in Thread]