]> granicus.if.org Git - postgresql/commitdiff
Fix uninitialized variable.
authorRobert Haas <rhaas@postgresql.org>
Tue, 18 Mar 2014 18:54:00 +0000 (14:54 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 18 Mar 2014 18:54:35 +0000 (14:54 -0400)
Report from Andres Freund, but not his fix.

src/bin/pg_basebackup/pg_recvlogical.c

index a631cee2dd7aa215889357a7ad09408a9a120691..7b27aab5909122b75c71b8e10ec7dd2c69c6442c 100644 (file)
@@ -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);