]> Dogcows Code - chaz/tar/commitdiff
(diff_file): diff_handle was not initialized
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 12 May 2005 15:39:02 +0000 (15:39 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 12 May 2005 15:39:02 +0000 (15:39 +0000)
src/compare.c

index d23a68aa227bd100fc28cd583ff691b2178e96c7..916ee29426002b343b554fdfd9c46df9dd7e402d 100644 (file)
@@ -243,9 +243,9 @@ diff_file ()
        }
       else
        {
-         int fd = open (current_stat_info.file_name, O_RDONLY | O_BINARY);
+         diff_handle = open (current_stat_info.file_name, O_RDONLY | O_BINARY);
 
-         if (fd < 0)
+         if (diff_handle < 0)
            {
              open_error (current_stat_info.file_name);
              skip_member ();
@@ -278,7 +278,7 @@ diff_file ()
                    assign_string (&save_name, 0);
                }
 
-             status = close (fd);
+             status = close (diff_handle);
              if (status != 0)
                close_error (current_stat_info.file_name);
 
This page took 0.026736 seconds and 4 git commands to generate.