From 91c67a417caaeeedb38b385d27b927344872abe2 Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Thu, 5 Sep 2013 21:21:46 +0800 Subject: [PATCH] Nicer version... --- server/fastcgi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1