mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-24 00:03:48 -04:00
- Do not close NULL stream
This commit is contained in:
parent
46eb13828e
commit
6d44032cba
@ -390,7 +390,9 @@ int main( int argc, char *argv[] )
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
if( fin )
|
||||||
fclose( fin );
|
fclose( fin );
|
||||||
|
if( fout )
|
||||||
fclose( fout );
|
fclose( fout );
|
||||||
|
|
||||||
memset( buffer, 0, sizeof( buffer ) );
|
memset( buffer, 0, sizeof( buffer ) );
|
||||||
|
|||||||
@ -449,7 +449,9 @@ int main( int argc, char *argv[] )
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
if( fin )
|
||||||
fclose( fin );
|
fclose( fin );
|
||||||
|
if( fout )
|
||||||
fclose( fout );
|
fclose( fout );
|
||||||
|
|
||||||
memset( buffer, 0, sizeof( buffer ) );
|
memset( buffer, 0, sizeof( buffer ) );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user