From 85e533ca87fff1b7ab40bd87a3a44b6969eefd13 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 8 Mar 2012 07:25:07 -0800 Subject: Securing the getStatusMsg call to never return NULL. --- src/Http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Http.cc b/src/Http.cc index 1a731b2..4e3e2a6 100644 --- a/src/Http.cc +++ b/src/Http.cc @@ -44,5 +44,5 @@ const char * Balau::Http::getStatusMsg(int httpStatus) { case 504: return "Gateway Timeout"; case 505: return "HTTP Version Not Supported"; } - return NULL; + return "Unknown HTTP code"; } -- cgit v1.2.3