git.ucc.asn.au
/
matches
/
MCTX3420.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8aa358c
)
Nicer version...
author
Jeremy Tan
<
[email protected]
>
Thu, 5 Sep 2013 13:21:46 +0000
(21:21 +0800)
committer
Jeremy Tan
<
[email protected]
>
Thu, 5 Sep 2013 13:21:46 +0000
(21:21 +0800)
server/fastcgi.c
patch
|
blob
|
history
diff --git
a/server/fastcgi.c
b/server/fastcgi.c
index
cb12e85
..
bddac21
100644
(file)
--- 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)
{
*/
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);
Log(LOGINFO, "%s: Rejected query with: %d: %s", context->current_module, status, description);
FCGI_BeginJSON(context, status);
UCC
git Repository :: git.ucc.asn.au