diff options
Diffstat (limited to 'src/testcurl/test_urlparse.c')
-rw-r--r-- | src/testcurl/test_urlparse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c index 8675f19c..9d2d8517 100644 --- a/src/testcurl/test_urlparse.c +++ b/src/testcurl/test_urlparse.c | |||
@@ -31,6 +31,7 @@ | |||
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 "mhd_has_in_name.h" | ||
34 | 35 | ||
35 | #ifdef _WIN32 | 36 | #ifdef _WIN32 |
36 | #ifndef WIN32_LEAN_AND_MEAN | 37 | #ifndef WIN32_LEAN_AND_MEAN |
@@ -201,8 +202,9 @@ main (int argc, char *const *argv) | |||
201 | unsigned int errorCount = 0; | 202 | unsigned int errorCount = 0; |
202 | (void)argc; /* Unused. Silent compiler warning. */ | 203 | (void)argc; /* Unused. Silent compiler warning. */ |
203 | 204 | ||
204 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 205 | if (NULL == argv || 0 == argv[0]) |
205 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 206 | return 99; |
207 | oneone = has_in_name (argv[0], "11"); | ||
206 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 208 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
207 | return 2; | 209 | return 2; |
208 | errorCount += testInternalGet (0); | 210 | errorCount += testInternalGet (0); |