diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-11-06 19:48:02 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-11-06 19:48:02 +0300 |
commit | 0ae9a4c10b2534f58b0e2aa0841fc837dfe5aa2a (patch) | |
tree | 6c7a6b4a1b0cc617efc93e781049dcb6d8b9a989 /src/testcurl/test_tricky.c | |
parent | 7999c2d7bfcc3cee873451ee31cd757fc0192d14 (diff) | |
download | libmicrohttpd-0ae9a4c10b2534f58b0e2aa0841fc837dfe5aa2a.tar.gz libmicrohttpd-0ae9a4c10b2534f58b0e2aa0841fc837dfe5aa2a.zip |
test_{tricky,toolarge}: minor improvement
Diffstat (limited to 'src/testcurl/test_tricky.c')
-rw-r--r-- | src/testcurl/test_tricky.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/test_tricky.c b/src/testcurl/test_tricky.c index c0233bda..8538fb28 100644 --- a/src/testcurl/test_tricky.c +++ b/src/testcurl/test_tricky.c | |||
@@ -383,6 +383,9 @@ ahcCheck (void *cls, | |||
383 | enum MHD_Result ret; | 383 | enum MHD_Result ret; |
384 | struct ahc_cls_type *const param = (struct ahc_cls_type *) cls; | 384 | struct ahc_cls_type *const param = (struct ahc_cls_type *) cls; |
385 | 385 | ||
386 | if (NULL == param) | ||
387 | mhdErrorExitDesc ("cls parameter is NULL"); | ||
388 | |||
386 | if (0 != strcmp (version, MHD_HTTP_VERSION_1_1)) | 389 | if (0 != strcmp (version, MHD_HTTP_VERSION_1_1)) |
387 | mhdErrorExitDesc ("Unexpected HTTP version"); | 390 | mhdErrorExitDesc ("Unexpected HTTP version"); |
388 | 391 | ||
@@ -398,9 +401,6 @@ ahcCheck (void *cls, | |||
398 | if (0 != *upload_data_size) | 401 | if (0 != *upload_data_size) |
399 | mhdErrorExitDesc ("'*upload_data_size' value is not zero"); | 402 | mhdErrorExitDesc ("'*upload_data_size' value is not zero"); |
400 | 403 | ||
401 | if (NULL == param) | ||
402 | mhdErrorExitDesc ("cls parameter is NULL"); | ||
403 | |||
404 | if (0 != strcmp (param->rq_method, method)) | 404 | if (0 != strcmp (param->rq_method, method)) |
405 | mhdErrorExitDesc ("Unexpected request method"); | 405 | mhdErrorExitDesc ("Unexpected request method"); |
406 | 406 | ||