summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 5c7bcb0..6d6f19a 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -207,7 +207,7 @@ process_arguments (int argc, char **argv)
207 if (strlen(db) == 0 && argc > c) 207 if (strlen(db) == 0 && argc > c)
208 db = argv[c++]; 208 db = argv[c++];
209 209
210 if (is_intnonneg (argv[c])) 210 if (is_intnonneg (argv[c]) && argc > c)
211 db_port = atoi (argv[c++]); 211 db_port = atoi (argv[c++]);
212 212
213 return validate_arguments (); 213 return validate_arguments ();