pgpool2.git / summary / log / commit / refs
commit e3f5560514a40a9fb5eb4f64501d4d7edea6b647
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Fri Aug 12 17:40:57 2011 +0000
Fix compiler warnings.
pool_query_context.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pool_query_context.c b/pool_query_context.c
index a4c0b4ede..5bad5ac6f 100644
--- a/pool_query_context.c
+++ b/pool_query_context.c
@@ -533,6 +533,8 @@ POOL_STATUS pool_send_and_wait(POOL_QUERY_CONTEXT *query_context,
backend = session_context->backend;
is_commit = is_commit_or_rollback_query(query_context->parse_tree);
is_begin_read_write = false;
+ len = 0;
+ string = NULL;
/*
* If the query is BEGIN READ WRITE in master/slave mode,
@@ -695,6 +697,9 @@ POOL_STATUS pool_extended_send_and_wait(POOL_QUERY_CONTEXT *query_context,
backend = session_context->backend;
is_commit = is_commit_or_rollback_query(query_context->parse_tree);
is_begin_read_write = false;
+ str_len = 0;
+ rewritten_len = 0;
+ str = NULL;
rewritten_begin = NULL;
/*
[parent: 5145ecd08452]