aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_post_loop.c')
-rw-r--r--src/testcurl/test_post_loop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
index aae297d4..6edaced1 100644
--- a/src/testcurl/test_post_loop.c
+++ b/src/testcurl/test_post_loop.c
@@ -31,7 +31,8 @@
31#include <stdlib.h> 31#include <stdlib.h>
32#include <string.h> 32#include <string.h>
33#include <time.h> 33#include <time.h>
34#include <gauger.h> 34#include "gauger.h"
35#include "mhd_has_in_name.h"
35 36
36#ifndef WINDOWS 37#ifndef WINDOWS
37#include <unistd.h> 38#include <unistd.h>
@@ -579,8 +580,9 @@ main (int argc, char *const *argv)
579 unsigned int errorCount = 0; 580 unsigned int errorCount = 0;
580 (void)argc; /* Unused. Silent compiler warning. */ 581 (void)argc; /* Unused. Silent compiler warning. */
581 582
582 oneone = (NULL != strrchr (argv[0], (int) '/')) ? 583 if (NULL == argv || 0 == argv[0])
583 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; 584 return 99;
585 oneone = has_in_name (argv[0], "11");
584 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 586 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
585 return 2; 587 return 2;
586 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) 588 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS))