X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fincremen.c;h=dc880cd88ce32f27d00dea401d3d98309346a7b6;hb=9a3e8a6f4374901c386821a0e08184f369141df4;hp=59be617b0d7c0dfe3bbb1d3d08ebd1853d2f20db;hpb=cac45fffc58cc10056c528582ee4b78b8ee175e0;p=chaz%2Ftar diff --git a/src/incremen.c b/src/incremen.c index 59be617..dc880cd 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) @@ -1410,7 +1410,7 @@ write_directory_file (void) if (! fp) return; - if (fseek (fp, 0L, SEEK_SET) != 0) + if (fseeko (fp, 0L, SEEK_SET) != 0) seek_error (listed_incremental_option); if (sys_truncate (fileno (fp)) != 0) truncate_error (listed_incremental_option);