From 3f472d41aa3d3f754c8ae1cde12da982b1ec2c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sat, 12 Sep 2015 22:38:19 +0000 Subject: [PATCH] Fix on num_connections_used not initialized --- lib/MySQL_Authentication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MySQL_Authentication.cpp b/lib/MySQL_Authentication.cpp index b13292267..14c011ab1 100644 --- a/lib/MySQL_Authentication.cpp +++ b/lib/MySQL_Authentication.cpp @@ -129,6 +129,7 @@ bool MySQL_Authentication::add(char * username, char * password, enum cred_usern ad->transaction_persistent=transaction_persistent; ad->fast_forward=fast_forward; ad->max_connections=max_connections; + ad->num_connections_used=0; cg.bt_map.insert(std::make_pair(hash1,ad)); cg.cred_array->add(ad); spin_wrunlock(&cg.lock);