pgpool2.git / summary / log / commit / refs
commit 3697a162fb56b5765b2763f60d97a2fc9a170d2c
Author: Tatsuo Ishii <ishii@postgresql.org>
Commit: Muhammad Usama <m.usama@gmail.com>
Date: Thu Nov 21 02:33:45 2013 +0000
Fix uninialized variables when all nodes are down.
Per Coverity report 1111489 and 1111490.
src/auth/pool_auth.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/auth/pool_auth.c b/src/auth/pool_auth.c
index 8cda37e97..2c417c0ea 100644
--- a/src/auth/pool_auth.c
+++ b/src/auth/pool_auth.c
@@ -5,7 +5,7 @@
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2011 PgPool Global Development Group
+ * Copyright (c) 2003-2013 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -1311,6 +1311,7 @@ signed char pool_read_kind(POOL_CONNECTION_POOL *cp)
char kind0, kind;
int i;
+ kind = -1;
kind0 = 0;
for (i=0;i<NUM_BACKENDS;i++)
@@ -1367,6 +1368,7 @@ int pool_read_int(POOL_CONNECTION_POOL *cp)
int data0, data;
int i;
+ data = -1;
data0 = 0;
for (i=0;i<NUM_BACKENDS;i++)
[parent: 83a81cacb0a5]