From 4daf255d608816ade499dcf8734af2714e1ea20f Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Mon, 20 Oct 2014 13:20:53 +0300 Subject: [PATCH] Fixed use of uninitialized variable. --- server/modules/routing/readwritesplit/readwritesplit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/readwritesplit.c b/server/modules/routing/readwritesplit/readwritesplit.c index a2b093631..8e3ca8aeb 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.c +++ b/server/modules/routing/readwritesplit/readwritesplit.c @@ -2004,7 +2004,7 @@ static int routeQuery( if (!succp && TARGET_IS_MASTER(route_target)) { - DCB* curr_master_dcb; + DCB* curr_master_dcb = NULL; succp = get_dcb(&curr_master_dcb, router_cli_ses,