diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-08-16 04:47:32 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-08-16 04:47:32 +0000 |
commit | dfca15116c95f5800312ee6b7346802bdc6c3724 (patch) | |
tree | eac2c53be18ad1b6a4bf4cd76010cbfb732c384f /plugins/check_mysql_query.c | |
parent | 564816c1243a4fc4474d4b70136925d6c2fbd577 (diff) | |
download | monitoring-plugins-dfca15116c95f5800312ee6b7346802bdc6c3724.tar.gz |
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
Diffstat (limited to 'plugins/check_mysql_query.c')
-rw-r--r-- | plugins/check_mysql_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c index 6c5e4367..e887bca2 100644 --- a/plugins/check_mysql_query.c +++ b/plugins/check_mysql_query.c | |||
@@ -271,7 +271,7 @@ validate_arguments (void) | |||
271 | db_host = strdup(""); | 271 | db_host = strdup(""); |
272 | 272 | ||
273 | if (db_pass == NULL) | 273 | if (db_pass == NULL) |
274 | db_pass == strdup(""); | 274 | db_pass = strdup(""); |
275 | 275 | ||
276 | if (db == NULL) | 276 | if (db == NULL) |
277 | db = strdup(""); | 277 | db = strdup(""); |