From a3b30d4cfe5f3ae718fd2cc6aa05b7707cac88dd Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 18 Mar 2014 14:54:00 -0400 Subject: [PATCH] Fix uninitialized variable. Report from Andres Freund, but not his fix. --- src/bin/pg_basebackup/pg_recvlogical.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_basebackup/pg_recvlogical.c b/src/bin/pg_basebackup/pg_recvlogical.c index a631cee2dd..7b27aab590 100644 --- a/src/bin/pg_basebackup/pg_recvlogical.c +++ b/src/bin/pg_basebackup/pg_recvlogical.c @@ -316,7 +316,7 @@ StreamLog(void) int64 message_target = 0; int64 fsync_target = 0; struct timeval timeout; - struct timeval *timeoutptr; + struct timeval *timeoutptr = NULL; FD_ZERO(&input_mask); FD_SET(PQsocket(conn), &input_mask); -- GitLab