Browse Source

Fix assignment written as a comparison in validate_arguments() when db_pass is NULL (Patch from http://blog.barfoo.org/projects/rpms-for-sles10)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2034 f882894a-f735-0410-b71e-b25c423dba1c
Thomas Guyot-Sionnest 17 years ago
parent
commit
dfca15116c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      plugins/check_mysql.c
  2. 1 1
      plugins/check_mysql_query.c

+ 1 - 1
plugins/check_mysql.c

@@ -362,7 +362,7 @@ validate_arguments (void)
 		db_host = strdup("");
 
 	if (db_pass == NULL)
-		db_pass == strdup("");
+		db_pass = strdup("");
 
 	if (db == NULL)
 		db = strdup("");

+ 1 - 1
plugins/check_mysql_query.c

@@ -271,7 +271,7 @@ validate_arguments (void)
 		db_host = strdup("");
 
 	if (db_pass == NULL)
-		db_pass == strdup("");
+		db_pass = strdup("");
 
 	if (db == NULL)
 		db = strdup("");