From d11313e6bc2da0bc9d34fcdca1cb16e0c7abd0be Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 1 Sep 2017 18:03:34 -0400 Subject: [PATCH] fix build --- src/zm_eventstream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_eventstream.cpp b/src/zm_eventstream.cpp index 51d6b878a..6efe2f794 100644 --- a/src/zm_eventstream.cpp +++ b/src/zm_eventstream.cpp @@ -834,7 +834,7 @@ bool EventStream::send_file( const char * filepath ) { return false; } bool sent = false; - bool size_size = false; + bool size_sent = false; #if HAVE_SENDFILE static struct stat filestat; @@ -845,7 +845,7 @@ bool EventStream::send_file( const char * filepath ) { fprintf( stdout, "Content-Length: %d\r\n\r\n", (int)filestat.st_size ); size_sent = true; - if ( ! zm_sendfile(fileno(stdout), fileno(fdj), 0, (int)filestat.st_size) != (int)filestat.st_size ) { + if ( zm_sendfile(fileno(stdout), fileno(fdj), 0, (int)filestat.st_size) != (int)filestat.st_size ) { sent = true; } #endif