diff options
Diffstat (limited to 'src/testcurl/test_delete.c')
-rw-r--r-- | src/testcurl/test_delete.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c index 35f7f6a2..9b2de537 100644 --- a/src/testcurl/test_delete.c +++ b/src/testcurl/test_delete.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 | #ifndef WINDOWS | 36 | #ifndef WINDOWS |
36 | #include <unistd.h> | 37 | #include <unistd.h> |
@@ -508,8 +509,9 @@ main (int argc, char *const *argv) | |||
508 | unsigned int errorCount = 0; | 509 | unsigned int errorCount = 0; |
509 | (void)argc; /* Unused. Silent compiler warning. */ | 510 | (void)argc; /* Unused. Silent compiler warning. */ |
510 | 511 | ||
511 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 512 | if (NULL == argv || 0 == argv[0]) |
512 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 513 | return 99; |
514 | oneone = has_in_name (argv[0], "11"); | ||
513 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 515 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
514 | return 2; | 516 | return 2; |
515 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) | 517 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) |