diff --git a/src/testspdy/test_new_connection.c b/src/testspdy/test_new_connection.c index e4e2b2e2..c955b41b 100644 --- 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;