pgpool2.git / summary / log / commit / refs

commit    d5feb062ba39d3b4bde2fde12c9216c537460ba0
Author:   Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date:     Mon Aug 02 10:16:06 2010 +0000

    Fix bug in pool_delete_prep_where: It's memset not memcpy.


pool_session_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool_session_context.c b/pool_session_context.c index c12ef1a56..5d8dbc4c0 100644 --- a/pool_session_context.c +++ b/pool_session_context.c @@ -1046,7 +1046,7 @@ void pool_delete_prep_where(char *name) { if (!strcmp(session_context->prep_where.name[i], name)) { - memcpy(&session_context->prep_where.where_to_send[i], 0, sizeof(bool)*MAX_NUM_BACKENDS); + memset(&session_context->prep_where.where_to_send[i], 0, sizeof(bool)*MAX_NUM_BACKENDS); *session_context->prep_where.name[i] = '\0'; return; } [parent: 1baf54702ce7]