diff options
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index edbc785c..50cc318b 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -269,7 +269,11 @@ gen_test_file_url (char *url, int port) | |||
269 | char *doc_path; | 269 | char *doc_path; |
270 | size_t doc_path_len; | 270 | size_t doc_path_len; |
271 | /* setup test file path, url */ | 271 | /* setup test file path, url */ |
272 | #ifdef PATH_MAX | ||
272 | doc_path_len = PATH_MAX > 4096 ? 4096 : PATH_MAX; | 273 | doc_path_len = PATH_MAX > 4096 ? 4096 : PATH_MAX; |
274 | #else /* ! PATH_MAX */ | ||
275 | doc_path_len = 4096; | ||
276 | #endif /* ! PATH_MAX */ | ||
273 | if (NULL == (doc_path = malloc (doc_path_len))) | 277 | if (NULL == (doc_path = malloc (doc_path_len))) |
274 | { | 278 | { |
275 | fprintf (stderr, MHD_E_MEM); | 279 | fprintf (stderr, MHD_E_MEM); |