Commit 41895a86 authored by Clément Stenac's avatar Clément Stenac

Sanity check

parent 3785da0d
...@@ -576,7 +576,9 @@ int gzclose_frontend( int fd ) ...@@ -576,7 +576,9 @@ int gzclose_frontend( int fd )
{ {
if( currentGzVp != NULL && fd != -1 ) if( currentGzVp != NULL && fd != -1 )
{ {
return gzclose( currentGzVp ); void *toClose = currentGzVp;
currentGzVp = NULL; currentGzFd = -1;
return gzclose( toClose );
} }
return -1; return -1;
} }
......
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