Minor fix.

* src/incremen.c (read_incr_db_01)
(read_directory_file): Initialize bufsize to 0.
Suggested by noordsij@cs.helsinki.fi.
This commit is contained in:
Sergey Poznyakoff
2010-01-24 18:09:31 +02:00
parent 28f2669b15
commit 45cf3a7426

View File

@@ -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)