From: Maxim Mamontov Date: Tue, 31 May 2011 17:02:45 +0000 (+0300) Subject: Fix uninitialized variabled in mod_store_mysql X-Git-Tag: 2.408-alpha~112 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/33e9c4df9ccc56e63480168ec1dc301b05b9a18c Fix uninitialized variabled in mod_store_mysql --- diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index 54e13f86..567d6950 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -1273,6 +1273,10 @@ char password[ADM_PASSWD_LEN + 1]; char passwordE[2*ADM_PASSWD_LEN + 2]; BLOWFISH_CTX ctx; +memset(pass, 0, sizeof(pass)); +memset(password, 0, sizeof(password)); +memset(passwordE, 0, sizeof(passwordE)); + string p; MYSQL_RES *res; MYSQL_ROW row;