From: Jeremy Tan Date: Thu, 5 Sep 2013 13:21:46 +0000 (+0800) Subject: Nicer version... X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=91c67a417caaeeedb38b385d27b927344872abe2;p=matches%2FMCTX3420.git Nicer version... --- diff --git a/server/fastcgi.c b/server/fastcgi.c index cb12e85..bddac21 100644 --- a/server/fastcgi.c +++ b/server/fastcgi.c @@ -253,7 +253,8 @@ void FCGI_RejectJSON(FCGIContext *context) */ void FCGI_RejectJSONEx(FCGIContext *context, StatusCodes status, const char *description) { - description = !description ? "" : description; + if (description == NULL) + description = "Unknown"; Log(LOGINFO, "%s: Rejected query with: %d: %s", context->current_module, status, description); FCGI_BeginJSON(context, status);