freebsd-ports/multimedia/zoneminder/files/patch-src_zmf.cpp
Kurt Jaeger 14389cc24f multimedia/zoneminder{-h264}: fix build with clang 4.0
PR:		216627
Reported by:	jbeich
Submitted by:	Ivan <bsd@abinet.ru> (maintainer)
MFH:		2017Q1
2017-03-12 19:41:42 +00:00

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 );