- Do not close NULL stream
This commit is contained in:
parent
46eb13828e
commit
6d44032cba
2 changed files with 8 additions and 4 deletions
|
@ -390,7 +390,9 @@ int main( int argc, char *argv[] )
|
|||
ret = 0;
|
||||
|
||||
exit:
|
||||
if( fin )
|
||||
fclose( fin );
|
||||
if( fout )
|
||||
fclose( fout );
|
||||
|
||||
memset( buffer, 0, sizeof( buffer ) );
|
||||
|
|
|
@ -449,7 +449,9 @@ int main( int argc, char *argv[] )
|
|||
ret = 0;
|
||||
|
||||
exit:
|
||||
if( fin )
|
||||
fclose( fin );
|
||||
if( fout )
|
||||
fclose( fout );
|
||||
|
||||
memset( buffer, 0, sizeof( buffer ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue