diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-05 23:29:05 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-05 23:29:05 +0200 |
commit | 934bc1a71f76c7535a4405a6118ce11c608b666a (patch) | |
tree | d19b7df9583f1d1518739e4ba1b13f4d76e6fed4 /src/testcurl/test_process_headers.c | |
parent | f8e92c1eb9d56a41b5461d9a54bbc1b1cb76e812 (diff) | |
download | libmicrohttpd-934bc1a71f76c7535a4405a6118ce11c608b666a.tar.gz libmicrohttpd-934bc1a71f76c7535a4405a6118ce11c608b666a.zip |
check return value
Diffstat (limited to 'src/testcurl/test_process_headers.c')
-rw-r--r-- | src/testcurl/test_process_headers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testcurl/test_process_headers.c b/src/testcurl/test_process_headers.c index 57fc3d31..db4aeb75 100644 --- a/src/testcurl/test_process_headers.c +++ b/src/testcurl/test_process_headers.c | |||
@@ -125,6 +125,8 @@ ahc_echo (void *cls, | |||
125 | response = MHD_create_response_from_buffer (strlen (url), | 125 | response = MHD_create_response_from_buffer (strlen (url), |
126 | (void *) url, | 126 | (void *) url, |
127 | MHD_RESPMEM_MUST_COPY); | 127 | MHD_RESPMEM_MUST_COPY); |
128 | if (NULL == response) | ||
129 | abort (); | ||
128 | MHD_add_response_header (response, "MyHeader", "MyValue"); | 130 | MHD_add_response_header (response, "MyHeader", "MyValue"); |
129 | hdr = MHD_get_response_header (response, "MyHeader"); | 131 | hdr = MHD_get_response_header (response, "MyHeader"); |
130 | if (0 != strcmp ("MyValue", hdr)) | 132 | if (0 != strcmp ("MyValue", hdr)) |