aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-03-18 14:54:00 -0400
committerRobert Haas <rhaas@postgresql.org>2014-03-18 14:54:35 -0400
commita3b30d4cfe5f3ae718fd2cc6aa05b7707cac88dd (patch)
tree24f057350b72a6ee0fc15e3c11dbb191b06fa824
parent40dae7ec537c5619fc93ad602c62f37be786d161 (diff)
downloadpostgresql-a3b30d4cfe5f3ae718fd2cc6aa05b7707cac88dd.tar.gz
postgresql-a3b30d4cfe5f3ae718fd2cc6aa05b7707cac88dd.zip
Fix uninitialized variable.
Report from Andres Freund, but not his fix.
-rw-r--r--src/bin/pg_basebackup/pg_recvlogical.c2
1 files changed, 1 insertions, 1 deletions
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);