aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/test_post_form.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testzzuf/test_post_form.c')
-rw-r--r--src/testzzuf/test_post_form.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c
index f994ab24..85a5d3d7 100644
--- a/src/testzzuf/test_post_form.c
+++ b/src/testzzuf/test_post_form.c
@@ -125,6 +125,16 @@ ahc_echo (void *cls,
125 enum MHD_Result ret; 125 enum MHD_Result ret;
126 (void) cls; (void) version; /* Unused. Silent compiler warning. */ 126 (void) cls; (void) version; /* Unused. Silent compiler warning. */
127 127
128 if (NULL == url)
129 fprintf (stderr, "The \"url\" parameter is NULL.\n");
130 if (NULL == method)
131 fprintf (stderr, "The \"method\" parameter is NULL.\n");
132 if (NULL == version)
133 fprintf (stderr, "The \"version\" parameter is NULL.\n");
134 if (NULL == upload_data_size)
135 fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
136 if ((0 != *upload_data_size) && (NULL == upload_data))
137 fprintf (stderr, "Upload data is NULL with non-zero size.\n");
128 if (0 != strcmp ("POST", method)) 138 if (0 != strcmp ("POST", method))
129 { 139 {
130 return MHD_NO; /* unexpected method */ 140 return MHD_NO; /* unexpected method */