diff options
Diffstat (limited to 'src/testcurl/test_put.c')
-rw-r--r-- | src/testcurl/test_put.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c index 11e99cc3..3d25016a 100644 --- a/src/testcurl/test_put.c +++ b/src/testcurl/test_put.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> |
@@ -517,8 +518,9 @@ main (int argc, char *const *argv) | |||
517 | unsigned int errorCount = 0; | 518 | unsigned int errorCount = 0; |
518 | (void)argc; /* Unused. Silent compiler warning. */ | 519 | (void)argc; /* Unused. Silent compiler warning. */ |
519 | 520 | ||
520 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 521 | if (NULL == argv || 0 == argv[0]) |
521 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 522 | return 99; |
523 | oneone = has_in_name (argv[0], "11"); | ||
522 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 524 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
523 | return 2; | 525 | return 2; |
524 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) | 526 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) |