[monitoring-plugins] Fix check_mysql.c client options from file

Sam Kottler git at monitoring-plugins.org
Thu Apr 3 19:50:08 CEST 2014


    Module: monitoring-plugins
    Branch: master
    Commit: 70314c62fc2d5829662959e528d1b314b73c7fbf
    Author: awiddersheim <awiddersheim at hotmail.com>
 Committer: Sam Kottler <shk at linux.com>
      Date: Sat Oct  5 10:57:37 2013 -0400
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=70314c6

Fix check_mysql.c client options from file

If you don't specify a group or a file to read data from the plugin tries to read from several files that don't exist and no groups.

---

 plugins/check_mysql.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 135aa18..4f09e5f 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -476,12 +476,6 @@ validate_arguments (void)
 	if (db_user == NULL)
 		db_user = strdup("");
 
-	if (opt_file == NULL)
-		opt_file = strdup("");
-
-	if (opt_group == NULL)
-		opt_group = strdup("");
-
 	if (db_host == NULL)
 		db_host = strdup("");
 



More information about the Commits mailing list