X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Ffastcgi.c;h=bddac21383a1e4df1da6ecfb95d92afdb459f7a9;hb=0f827545e0eb6846608da4aaf4dc8047478070a4;hp=cb12e85ee9385254e7912067ad9adb05c8f9393a;hpb=34ec9353b52472aabc2b42ec0861e004c50b76eb;p=matches%2FMCTX3420.git 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);