diff options
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r-- | plugins/check_mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 5c7bcb0d..6d6f19a9 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 (); |