From: zacheiss Date: Thu, 15 May 2003 12:04:17 +0000 (+0000) Subject: Don't bother with error_message() is code is 0. X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/908337d205c19e3dc141581dec53570de7025d68 Don't bother with error_message() is code is 0. --- diff --git a/update/update_server.c b/update/update_server.c index 7c23a69b..41bcbda4 100644 --- a/update/update_server.c +++ b/update/update_server.c @@ -243,5 +243,6 @@ static void syslog_com_err_proc(const char *progname, long code, buf[BUFSIZ] = '\0'; vsnprintf(buf, BUFSIZ, fmt, args); - syslog(LOG_NOTICE, "%s: %s %s", progname, error_message(code), buf); + syslog(LOG_NOTICE, "%s: %s %s", progname ? progname : "", + code ? error_message(code) : "", buf); }