SF.net SVN: nagiosplug:[2034] nagiosplug/trunk/plugins

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.