Unverified Commit 7f22cc07 by alanminko Committed by GitHub

Merge pull request #194 from jamesjer/badfile

Do not pass NULL to fprintf
parents 17c9075b 5a9f37cd
...@@ -189,7 +189,7 @@ int WriteResultIntoFile( char * pFileName ) ...@@ -189,7 +189,7 @@ int WriteResultIntoFile( char * pFileName )
pFile = fopen( pFileName, "w" ); pFile = fopen( pFileName, "w" );
if ( pFile == NULL ) if ( pFile == NULL )
{ {
fprintf( pFile, "\n\nCannot open the output file\n" ); fprintf( stderr, "\n\nCannot open the output file\n" );
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