Blob Blame History Raw
From 63f406abba400059e308d842fa2791ce28d5708e Mon Sep 17 00:00:00 2001
From: Scott Wilkerson <swilkerson@nagios.com>
Date: Fri, 11 Sep 2015 12:12:33 -0500
Subject: [PATCH] Fix for check_mysql not looking in correct path for my.cnf

https://bugzilla.redhat.com/show_bug.cgi?id=1256731
https://bugs.centos.org/view.php?id=9333
---
 plugins/check_mysql.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 8da5ee8..83f89c8 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -491,12 +491,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("");