summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dbad749)
raw | patch | inline | side by side (parent: dbad749)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 28 Jan 2003 07:26:05 +0000 (07:26 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 28 Jan 2003 07:26:05 +0000 (07:26 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@258 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_mysql.c | patch | blob | history |
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 5c7bcb0d918faef52bb887ffb2ad09937bb70b80..6d6f19a95aae4a14434b333d6994e316a26d73a1 100644 (file)
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
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 ();