summaryrefslogtreecommitdiff
path: root/src/mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql.c')
-rw-r--r--src/mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql.c b/src/mysql.c
index 011c8b615..a7f84b06e 100644
--- a/src/mysql.c
+++ b/src/mysql.c
@@ -244,7 +244,7 @@ char *db_mysql_secure(char *pass)
if(enc_decrypt(pass,tmp_pass,PASSMAX)!=1) {
snprintf(epass, sizeof(epass), "'%s'", pass);
} else { /* if we could decrypt the pass */
- if (!tmp_pass) {
+ if (!pass) {
snprintf(epass, sizeof(epass), "''");
} else if ((!MysqlSecure) || (strcmp(MysqlSecure, "") == 0)) {
snprintf(epass, sizeof(epass), "'%s'", tmp_pass);