diff options
Diffstat (limited to 'plugins')
-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) if (strlen(db) == 0 && argc > c) db = argv[c++]; - if (is_intnonneg (argv[c])) + if (is_intnonneg (argv[c]) && argc > c) db_port = atoi (argv[c++]); return validate_arguments (); |