diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-04-06 10:08:57 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-04-06 10:08:57 +0000 |
commit | 2e7a39ae55f93eaddc917d47de6dc8bee51ee401 (patch) | |
tree | b20a49798dcedbe6424cf29c1ba2a01e46012efd | |
parent | 679576bb35ad1f7834832fbdab68aa77587b7474 (diff) | |
download | monitoring-plugins-2e7a39ae55f93eaddc917d47de6dc8bee51ee401.tar.gz |
Stop coredump on Solaris if arg not specified (Jason Kau - 1465288)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1370 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/utils.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -180,3 +180,4 @@ Johan Fischer | |||
180 | Sakari Lehtonen | 180 | Sakari Lehtonen |
181 | John Rouillard | 181 | John Rouillard |
182 | Sebastian Wiesinger | 182 | Sebastian Wiesinger |
183 | Jason Kau | ||
diff --git a/plugins/utils.c b/plugins/utils.c index a5245c67..bb4ffbc2 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -71,7 +71,7 @@ void usage_va (const char *fmt, ...) | |||
71 | 71 | ||
72 | void usage2(const char *msg, const char *arg) | 72 | void usage2(const char *msg, const char *arg) |
73 | { | 73 | { |
74 | printf ("%s: %s - %s\n",progname,msg,arg); | 74 | printf ("%s: %s - %s\n", progname, msg, arg?arg:"(null)" ); |
75 | print_usage (); | 75 | print_usage (); |
76 | exit (STATE_UNKNOWN); | 76 | exit (STATE_UNKNOWN); |
77 | } | 77 | } |