aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/test_post_form.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_form.c
parent639bfd972debb7408386bc8977a88618178fb37c (diff)
downloadlibmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.tar.gz
libmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.zip
fix #3753
Diffstat (limited to 'src/testzzuf/test_post_form.c')
-rw-r--r--src/testzzuf/test_post_form.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c
index b03c4c81..3e2cdffe 100644
--- a/src/testzzuf/test_post_form.c
+++ b/src/testzzuf/test_post_form.c
@@ -391,13 +391,13 @@ testExternalPost ()
391} 391}
392 392
393 393
394
395int 394int
396main (int argc, char *const *argv) 395main (int argc, char *const *argv)
397{ 396{
398 unsigned int errorCount = 0; 397 unsigned int errorCount = 0;
399 398
400 oneone = NULL != strstr (argv[0], "11"); 399 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
400 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
401 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 401 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
402 return 2; 402 return 2;
403 errorCount += testInternalPost (); 403 errorCount += testInternalPost ();