From dfca15116c95f5800312ee6b7346802bdc6c3724 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sat, 16 Aug 2008 04:47:32 +0000 Subject: [PATCH] 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 --- plugins/check_mysql.c | 2 +- plugins/check_mysql_query.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index a9f0f600..d82dea14 100644 --- a/plugins/check_mysql.c +++ b/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(""); 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) db_host = strdup(""); if (db_pass == NULL) - db_pass == strdup(""); + db_pass = strdup(""); if (db == NULL) db = strdup(""); -- 2.11.4.GIT