14389cc24f
PR: 216627 Reported by: jbeich Submitted by: Ivan <bsd@abinet.ru> (maintainer) MFH: 2017Q1
11 lines
365 B
C++
11 lines
365 B
C++
--- src/zmf.cpp.orig 2016-07-28 01:45:26 UTC
|
|
+++ src/zmf.cpp
|
|
@@ -331,7 +331,7 @@ int main( int argc, char *argv[] )
|
|
Debug( 1, "Got image, writing to %s", path );
|
|
|
|
FILE *fd = 0;
|
|
- if ( (fd = fopen( path, "w" )) < 0 )
|
|
+ if ( (fd = fopen( path, "w" )) == NULL )
|
|
{
|
|
Error( "Can't fopen '%s': %s", path, strerror(errno) );
|
|
exit( -1 );
|