From: Sergey Poznyakoff Date: Sun, 24 Jan 2010 16:09:31 +0000 (+0200) Subject: Minor fix. X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=commitdiff_plain;h=45cf3a7426ff21f1dd77ce23efb242b2bc940001 Minor fix. * src/incremen.c (read_incr_db_01) (read_directory_file): Initialize bufsize to 0. Suggested by noordsij@cs.helsinki.fi. --- 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)