From: Peter Eisentraut Date: Sat, 28 May 2011 22:03:38 +0000 (+0300) Subject: Avoid compiler warning when building without zlib X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=1b6dabc452b9357e39b63a94c109e2293f13a555;p=users%2Fhanada%2Fpostgres.git Avoid compiler warning when building without zlib --- diff --git a/src/bin/pg_dump/compress_io.c b/src/bin/pg_dump/compress_io.c index 66d2419725..8540a75d11 100644 --- a/src/bin/pg_dump/compress_io.c +++ b/src/bin/pg_dump/compress_io.c @@ -535,6 +535,7 @@ cfopen_write(const char *path, const char *mode, int compression) free(fname); #else die_horribly(NULL, modulename, "not built with zlib support\n"); + fp = NULL; /* keep compiler quiet */ #endif } return fp;