diff options
Diffstat (limited to 'src/testspdy/test_new_connection.c')
-rw-r--r-- | src/testspdy/test_new_connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
149 | { | 149 | { |
150 | char *dst; | 150 | char *dst; |
151 | dst = malloc(len+1); | 151 | dst = malloc(len+1); |
152 | if (NULL == dst) | ||
153 | abort (); | ||
152 | memcpy(dst, s, len); | 154 | memcpy(dst, s, len); |
153 | dst[len] = '\0'; | 155 | dst[len] = '\0'; |
154 | return dst; | 156 | return dst; |