make_tar_archive() needs to initialize `success'.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 17 Aug 2006 16:47:41 +0000 (16:47 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 17 Aug 2006 16:47:41 +0000 (16:47 +0000)
Thanks to "Morgan" <theatomicbob@excite.com> for reporting this bug.

src/tests/filesys/extended/tar.c

index 193c373fe92abe66576d616f316ab0f347022939..a5818616b4b2afe80921987fe2236bcec3b72c46 100644 (file)
@@ -50,7 +50,7 @@ make_tar_archive (const char *archive_name, char *files[], size_t file_cnt)
 {
   static const char zeros[512];
   int archive_fd;
-  bool success;
+  bool success = true;
   bool write_error = false;
   size_t i;