Fix comment.
[pintos-anon] / src / tests / filesys / extended / tar.c
index 193c373fe92abe66576d616f316ab0f347022939..6f70d973e0b022be4b6128a0d96d9e687c09fbbc 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;
   
@@ -192,8 +192,8 @@ write_header (const char *file_name,
 
   memset (header, 0, sizeof header);
 
-/* Drop confusing and possibly dangerous prefixes from
-   FILE_NAME. */
+  /* Drop confusing and possibly dangerous prefixes from
+     FILE_NAME. */
   while (*file_name == '/'
          || !memcmp (file_name, "./", 2)
          || !memcmp (file_name, "../", 3))