<<< Date Index >>>     <<< Thread Index >>>

[PATCH 04 of 16] Make sure sb.st_size is initialized to zero



1 file changed, 1 insertion(+)
buffy.c |    1 +


# HG changeset patch
# User Erik Hovland <erik@xxxxxxxxxxx>
# Date 1236890309 25200
# Branch HEAD
# Node ID 83e3678ef5d33a3d8b4a64c035ffa43c61b73c42
# Parent  b4cf86788470dceb7bc4f80edc7f9b7098839a43
Make sure sb.st_size is initialized to zero.

diff --git a/buffy.c b/buffy.c
--- a/buffy.c
+++ b/buffy.c
@@ -260,6 +260,7 @@
   struct stat contex_sb;
   time_t t;
 
+  sb.st_size=0;
   contex_sb.st_dev=0;
   contex_sb.st_ino=0;