From e13152c0a52f9b3ade44f3fc72ca3318a8eb53a9 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 25 May 2012 14:44:25 +0900 Subject: [PATCH] Made spdylay_strerror(0) return "Success" --- lib/spdylay_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/spdylay_helper.c b/lib/spdylay_helper.c index baee0628..38115e93 100644 --- a/lib/spdylay_helper.c +++ b/lib/spdylay_helper.c @@ -75,6 +75,8 @@ int spdylay_reserve_buffer(uint8_t **buf_ptr, size_t *buflen_ptr, const char* spdylay_strerror(int error_code) { switch(error_code) { + case 0: + return "Success"; case SPDYLAY_ERR_INVALID_ARGUMENT: return "Invalid argument"; case SPDYLAY_ERR_ZLIB: