Nicer version...
authorJeremy Tan <[email protected]>
Thu, 5 Sep 2013 13:21:46 +0000 (21:21 +0800)
committerJeremy Tan <[email protected]>
Thu, 5 Sep 2013 13:21:46 +0000 (21:21 +0800)
server/fastcgi.c

index cb12e85..bddac21 100644 (file)
@@ -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);

UCC git Repository :: git.ucc.asn.au