From 2e7a39ae55f93eaddc917d47de6dc8bee51ee401 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 6 Apr 2006 10:08:57 +0000 Subject: 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 diff --git a/THANKS.in b/THANKS.in index 3fb69c8..71d272f 100644 --- a/THANKS.in +++ b/THANKS.in @@ -180,3 +180,4 @@ Johan Fischer Sakari Lehtonen John Rouillard Sebastian Wiesinger +Jason Kau diff --git a/plugins/utils.c b/plugins/utils.c index a5245c6..bb4ffbc 100644 --- a/plugins/utils.c +++ b/plugins/utils.c @@ -71,7 +71,7 @@ void usage_va (const char *fmt, ...) void usage2(const char *msg, const char *arg) { - printf ("%s: %s - %s\n",progname,msg,arg); + printf ("%s: %s - %s\n", progname, msg, arg?arg:"(null)" ); print_usage (); exit (STATE_UNKNOWN); } -- cgit v0.10-9-g596f