Code

Fix assignment written as a comparison in validate_arguments() when db_pass is NULL...
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Sat, 16 Aug 2008 04:47:32 +0000 (04:47 +0000)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Sat, 16 Aug 2008 04:47:32 +0000 (04:47 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2034 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_mysql.c
plugins/check_mysql_query.c

index a9f0f600bc9964d2d81ceba735c6f0a4c09a12f7..d82dea142b7cfed8cc31f1d36f9d2df10a587977 100644 (file)
@@ -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("");
index 6c5e436798c5c9b205a66bf477f67814640a71c1..e887bca2ba15daa5e3a1abf146f5d6a034a418ac 100644 (file)
@@ -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("");