From 1b6dabc452b9357e39b63a94c109e2293f13a555 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Sun, 29 May 2011 01:03:38 +0300
Subject: [PATCH] Avoid compiler warning when building without zlib

---
 src/bin/pg_dump/compress_io.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/pg_dump/compress_io.c b/src/bin/pg_dump/compress_io.c
index 66d24197253..8540a75d113 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;
-- 
GitLab