]> git.stg.codes - stg.git/commitdiff
Fix uninitialized variabled in mod_store_mysql
authorMaxim Mamontov <faust@gts.dp.ua>
Tue, 31 May 2011 17:02:45 +0000 (20:02 +0300)
committerMaxim Mamontov <faust@gts.dp.ua>
Tue, 31 May 2011 17:02:45 +0000 (20:02 +0300)
projects/stargazer/plugins/store/mysql/mysql_store.cpp

index 54e13f864deaebe8eeeca50420f821b3b16d897c..567d69503d2d3f3da10cb01a84ff80258c3bfc08 100644 (file)
@@ -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;