diff options
Diffstat (limited to 'src/testcurl/test_get_response_cleanup.c')
-rw-r--r-- | src/testcurl/test_get_response_cleanup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testcurl/test_get_response_cleanup.c b/src/testcurl/test_get_response_cleanup.c index 457c646f..66653a93 100644 --- a/src/testcurl/test_get_response_cleanup.c +++ b/src/testcurl/test_get_response_cleanup.c | |||
@@ -51,6 +51,8 @@ | |||
51 | #include <windows.h> | 51 | #include <windows.h> |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #include "mhd_has_in_name.h" | ||
55 | |||
54 | #if defined(CPU_COUNT) && (CPU_COUNT+0) < 2 | 56 | #if defined(CPU_COUNT) && (CPU_COUNT+0) < 2 |
55 | #undef CPU_COUNT | 57 | #undef CPU_COUNT |
56 | #endif | 58 | #endif |
@@ -415,8 +417,9 @@ main (int argc, char *const *argv) | |||
415 | } | 417 | } |
416 | #endif /* _WIN32 */ | 418 | #endif /* _WIN32 */ |
417 | 419 | ||
418 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 420 | if (NULL == argv || 0 == argv[0]) |
419 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 421 | return 99; |
422 | oneone = has_in_name (argv[0], "11"); | ||
420 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) | 423 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) |
421 | { | 424 | { |
422 | errorCount += testInternalGet (); | 425 | errorCount += testInternalGet (); |