]> Dogcows Code - chaz/tar/commitdiff
Minor fix.
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 24 Jan 2010 16:09:31 +0000 (18:09 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 24 Jan 2010 16:09:31 +0000 (18:09 +0200)
* src/incremen.c (read_incr_db_01)
(read_directory_file): Initialize bufsize to 0.
Suggested by noordsij@cs.helsinki.fi.

src/incremen.c

index 59be617b0d7c0dfe3bbb1d3d08ebd1853d2f20db..7cad838a8e6e2d26b1b09e65801a2415a75de547 100644 (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)
This page took 0.023584 seconds and 4 git commands to generate.