libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 599ccf8fb50febde09eae05dff329c215ad7e395
parent eb31c3c9ba26456bef4fede71143ded746dd3049
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 20 Dec 2014 00:55:21 +0000

-check malloc rval

Diffstat:
Msrc/testspdy/test_new_connection.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/testspdy/test_new_connection.c b/src/testspdy/test_new_connection.c @@ -149,6 +149,8 @@ static char* strcopy(const char *s, size_t len) { char *dst; dst = malloc(len+1); + if (NULL == dst) + abort (); memcpy(dst, s, len); dst[len] = '\0'; return dst;