diff options
Diffstat (limited to 'src/testcurl/test_iplimit.c')
-rw-r--r-- | src/testcurl/test_iplimit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c index 32f7e36a..48be99f7 100644 --- a/src/testcurl/test_iplimit.c +++ b/src/testcurl/test_iplimit.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <stdlib.h> | 32 | #include <stdlib.h> |
33 | #include <string.h> | 33 | #include <string.h> |
34 | #include <time.h> | 34 | #include <time.h> |
35 | #include "mhd_has_in_name.h" | ||
35 | 36 | ||
36 | #ifndef WINDOWS | 37 | #ifndef WINDOWS |
37 | #include <unistd.h> | 38 | #include <unistd.h> |
@@ -339,8 +340,9 @@ main (int argc, char *const *argv) | |||
339 | unsigned int errorCount = 0; | 340 | unsigned int errorCount = 0; |
340 | (void)argc; /* Unused. Silent compiler warning. */ | 341 | (void)argc; /* Unused. Silent compiler warning. */ |
341 | 342 | ||
342 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 343 | if (NULL == argv || 0 == argv[0]) |
343 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 344 | return 99; |
345 | oneone = has_in_name (argv[0], "11"); | ||
344 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 346 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
345 | return 2; | 347 | return 2; |
346 | errorCount |= testMultithreadedGet (); | 348 | errorCount |= testMultithreadedGet (); |