[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2034] nagiosplug/trunk/plugins
dermoth at users.sourceforge.net
dermoth at users.sourceforge.net
Sat Aug 16 06:47:33 CEST 2008
Revision: 2034
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2034&view=rev
Author: dermoth
Date: 2008-08-16 04:47:32 +0000 (Sat, 16 Aug 2008)
Log Message:
-----------
Fix assignment written as a comparison in validate_arguments() when db_pass is NULL (Patch from http://blog.barfoo.org/projects/rpms-for-sles10)
Modified Paths:
--------------
nagiosplug/trunk/plugins/check_mysql.c
nagiosplug/trunk/plugins/check_mysql_query.c
Modified: nagiosplug/trunk/plugins/check_mysql.c
===================================================================
--- nagiosplug/trunk/plugins/check_mysql.c 2008-08-16 04:47:22 UTC (rev 2033)
+++ nagiosplug/trunk/plugins/check_mysql.c 2008-08-16 04:47:32 UTC (rev 2034)
@@ -362,7 +362,7 @@
db_host = strdup("");
if (db_pass == NULL)
- db_pass == strdup("");
+ db_pass = strdup("");
if (db == NULL)
db = strdup("");
Modified: nagiosplug/trunk/plugins/check_mysql_query.c
===================================================================
--- nagiosplug/trunk/plugins/check_mysql_query.c 2008-08-16 04:47:22 UTC (rev 2033)
+++ nagiosplug/trunk/plugins/check_mysql_query.c 2008-08-16 04:47:32 UTC (rev 2034)
@@ -271,7 +271,7 @@
db_host = strdup("");
if (db_pass == NULL)
- db_pass == strdup("");
+ db_pass = strdup("");
if (db == NULL)
db = strdup("");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list