From 45cf3a7426ff21f1dd77ce23efb242b2bc940001 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 24 Jan 2010 18:09:31 +0200 Subject: [PATCH] Minor fix. * src/incremen.c (read_incr_db_01) (read_directory_file): Initialize bufsize to 0. Suggested by noordsij@cs.helsinki.fi. --- src/incremen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/incremen.c b/src/incremen.c index 59be617..7cad838 100644 --- a/src/incremen.c +++ b/src/incremen.c @@ -922,8 +922,8 @@ read_incr_db_01 (int version, const char *initbuf) uintmax_t u; time_t sec; long int nsec; - char *buf = 0; - size_t bufsize; + char *buf = NULL; + size_t bufsize = 0; char *ebuf; long lineno = 1; @@ -1282,8 +1282,8 @@ void read_directory_file (void) { int fd; - char *buf = 0; - size_t bufsize; + char *buf = NULL; + size_t bufsize = 0; int flags = O_RDWR | O_CREAT; if (incremental_level == 0) -- 2.45.2