diff options
Diffstat (limited to 'src/testcurl/perf_get.c')
-rw-r--r-- | src/testcurl/perf_get.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c index b5d754a8..8f82b198 100644 --- a/src/testcurl/perf_get.c +++ b/src/testcurl/perf_get.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include <string.h> | 44 | #include <string.h> |
45 | #include <time.h> | 45 | #include <time.h> |
46 | #include "gauger.h" | 46 | #include "gauger.h" |
47 | #include "mhd_has_in_name.h" | ||
47 | 48 | ||
48 | #ifndef WINDOWS | 49 | #ifndef WINDOWS |
49 | #include <unistd.h> | 50 | #include <unistd.h> |
@@ -579,8 +580,9 @@ main (int argc, char *const *argv) | |||
579 | int port = 1130; | 580 | int port = 1130; |
580 | (void)argc; /* Unused. Silent compiler warning. */ | 581 | (void)argc; /* Unused. Silent compiler warning. */ |
581 | 582 | ||
582 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 583 | if (NULL == argv || 0 == argv[0]) |
583 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 584 | return 99; |
585 | oneone = has_in_name (argv[0], "11"); | ||
584 | if (oneone) | 586 | if (oneone) |
585 | port += 15; | 587 | port += 15; |
586 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 588 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |