diff options
Diffstat (limited to 'src/testcurl/test_post.c')
-rw-r--r-- | src/testcurl/test_post.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c index cfef2c46..11de0676 100644 --- a/src/testcurl/test_post.c +++ b/src/testcurl/test_post.c | |||
@@ -43,6 +43,8 @@ | |||
43 | #include <windows.h> | 43 | #include <windows.h> |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #include "mhd_has_in_name.h" | ||
47 | |||
46 | #if defined(CPU_COUNT) && (CPU_COUNT+0) < 2 | 48 | #if defined(CPU_COUNT) && (CPU_COUNT+0) < 2 |
47 | #undef CPU_COUNT | 49 | #undef CPU_COUNT |
48 | #endif | 50 | #endif |
@@ -770,8 +772,9 @@ main (int argc, char *const *argv) | |||
770 | unsigned int errorCount = 0; | 772 | unsigned int errorCount = 0; |
771 | (void)argc; /* Unused. Silent compiler warning. */ | 773 | (void)argc; /* Unused. Silent compiler warning. */ |
772 | 774 | ||
773 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 775 | if (NULL == argv || 0 == argv[0]) |
774 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 776 | return 99; |
777 | oneone = has_in_name (argv[0], "11"); | ||
775 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 778 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
776 | return 2; | 779 | return 2; |
777 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) | 780 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) |