diff --git a/version.c b/version.c index 1b4d12579..f3c8c0c21 100644 --- a/version.c +++ b/version.c @@ -808,7 +808,7 @@ DLL_EXPORT int get_buildinfo_strings(const char*** pppszBldInfoStr) static void display_str( FILE* f, int httpfd, const char* str ) { if (f != stdout) - if (httpfd) + if (httpfd >= 0) hprintf( httpfd, "%s\n", str ); else fprintf( f, "%s\n", str );