diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-19 13:38:16 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-19 13:38:16 +0300 |
commit | ff842eabd8d6de36242d88b1ded314282d04f5ad (patch) | |
tree | 084d335c470f4035d9093602fd8ffc07d7deb817 /src/testzzuf/test_put_large.c | |
parent | e53b8c0b2898d16997be6037c308846c561073a0 (diff) | |
download | libmicrohttpd-ff842eabd8d6de36242d88b1ded314282d04f5ad.tar.gz libmicrohttpd-ff842eabd8d6de36242d88b1ded314282d04f5ad.zip |
testzzuf: print wrong callback parameters values
Diffstat (limited to 'src/testzzuf/test_put_large.c')
-rw-r--r-- | src/testzzuf/test_put_large.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testzzuf/test_put_large.c b/src/testzzuf/test_put_large.c index abda22cb..3a3d7fb0 100644 --- a/src/testzzuf/test_put_large.c +++ b/src/testzzuf/test_put_large.c | |||
@@ -98,6 +98,16 @@ ahc_echo (void *cls, | |||
98 | enum MHD_Result ret; | 98 | enum MHD_Result ret; |
99 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ | 99 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ |
100 | 100 | ||
101 | if (NULL == url) | ||
102 | fprintf (stderr, "The \"url\" parameter is NULL.\n"); | ||
103 | if (NULL == method) | ||
104 | fprintf (stderr, "The \"method\" parameter is NULL.\n"); | ||
105 | if (NULL == version) | ||
106 | fprintf (stderr, "The \"version\" parameter is NULL.\n"); | ||
107 | if (NULL == upload_data_size) | ||
108 | fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n"); | ||
109 | if ((0 != *upload_data_size) && (NULL == upload_data)) | ||
110 | fprintf (stderr, "Upload data is NULL with non-zero size.\n"); | ||
101 | if (0 != strcmp ("PUT", method)) | 111 | if (0 != strcmp ("PUT", method)) |
102 | return MHD_NO; /* unexpected method */ | 112 | return MHD_NO; /* unexpected method */ |
103 | if ((*done) == 0) | 113 | if ((*done) == 0) |