Merge pull request #194 from jamesjer/badfile

Do not pass NULL to fprintf
This commit is contained in:
alanminko 2023-09-05 14:07:35 +07:00 committed by GitHub
commit 7f22cc07b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ int WriteResultIntoFile( char * pFileName )
pFile = fopen( pFileName, "w" );
if ( pFile == NULL )
{
fprintf( pFile, "\n\nCannot open the output file\n" );
fprintf( stderr, "\n\nCannot open the output file\n" );
return 1;
}