aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/test_post.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-15 01:19:44 +0000
committerChristian Grothoff <christian@grothoff.org>2015-04-15 01:19:44 +0000
commit1a11c2c680e4cce9a63842db24d8e8b2194e7178 (patch)
treeca48dfa8b293c3cdcf266fd97fb97eec16d06d16 /src/testzzuf/test_post.c
parent639bfd972debb7408386bc8977a88618178fb37c (diff)
downloadlibmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.tar.gz
libmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.zip
fix #3753
Diffstat (limited to 'src/testzzuf/test_post.c')
-rw-r--r--src/testzzuf/test_post.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testzzuf/test_post.c b/src/testzzuf/test_post.c
index 22701f09..632609fb 100644
--- a/src/testzzuf/test_post.c
+++ b/src/testzzuf/test_post.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_post.c 22 * @file test_post.c
23 * @brief Testcase for libmicrohttpd POST operations using URL-encoding 23 * @brief Testcase for libmicrohttpd POST operations using URL-encoding
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -375,13 +375,13 @@ testExternalPost ()
375} 375}
376 376
377 377
378
379int 378int
380main (int argc, char *const *argv) 379main (int argc, char *const *argv)
381{ 380{
382 unsigned int errorCount = 0; 381 unsigned int errorCount = 0;
383 382
384 oneone = NULL != strstr (argv[0], "11"); 383 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
384 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
385 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 385 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
386 return 2; 386 return 2;
387 errorCount += testInternalPost (); 387 errorCount += testInternalPost ();