postgres.git / summary / log / commit / refs
commit a3b30d4cfe5f3ae718fd2cc6aa05b7707cac88dd
Author: Robert Haas <rhaas@postgresql.org>
Date: Tue Mar 18 18:54:00 2014 +0000
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 a631cee2dd7..7b27aab5909 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);
[parent: 40dae7ec537c]