Commit 065b5cd2 authored by Rafaël Carré's avatar Rafaël Carré

Fix double fclose()

CID 140
parent 02c821f5
...@@ -632,6 +632,7 @@ int tar_extract_all( TAR *t, char *prefix ) ...@@ -632,6 +632,7 @@ int tar_extract_all( TAR *t, char *prefix )
{ {
fprintf( stderr, "error writing %s skipping...\n", fname ); fprintf( stderr, "error writing %s skipping...\n", fname );
fclose( outfile ); fclose( outfile );
outfile = NULL;
unlink( fname ); unlink( fname );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment