Sfoglia il codice sorgente

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.
awiddersheim 12 anni fa
parent
commit
d0ed22a2dd
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  1. 0 6
      plugins/check_mysql.c

+ 0 - 6
plugins/check_mysql.c

@@ -491,12 +491,6 @@ validate_arguments (void)
 	if (db_user == NULL)
 	if (db_user == NULL)
 		db_user = strdup("");
 		db_user = strdup("");
 
 
-	if (opt_file == NULL)
-		opt_file = strdup("");
-
-	if (opt_group == NULL)
-		opt_group = strdup("");
-
 	if (db_host == NULL)
 	if (db_host == NULL)
 		db_host = strdup("");
 		db_host = strdup("");