- Do not close NULL stream

This commit is contained in:
Paul Bakker 2011-02-06 12:49:19 +00:00
parent 46eb13828e
commit 6d44032cba
2 changed files with 8 additions and 4 deletions

View File

@ -390,8 +390,10 @@ int main( int argc, char *argv[] )
ret = 0;
exit:
fclose( fin );
fclose( fout );
if( fin )
fclose( fin );
if( fout )
fclose( fout );
memset( buffer, 0, sizeof( buffer ) );
memset( digest, 0, sizeof( digest ) );

View File

@ -449,8 +449,10 @@ int main( int argc, char *argv[] )
ret = 0;
exit:
fclose( fin );
fclose( fout );
if( fin )
fclose( fin );
if( fout )
fclose( fout );
memset( buffer, 0, sizeof( buffer ) );
memset( digest, 0, sizeof( digest ) );