diff options
Diffstat (limited to 'tests/libtest/lib1905.c')
-rw-r--r-- | tests/libtest/lib1905.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/libtest/lib1905.c b/tests/libtest/lib1905.c index ab8e25425..bc1acf846 100644 --- a/tests/libtest/lib1905.c +++ b/tests/libtest/lib1905.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2019 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2019 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -30,10 +30,15 @@ int test(char *URL) CURLSH *sh = NULL; CURL *ch = NULL; int unfinished; + CURLM *cm; - CURLM *cm = curl_multi_init(); - if(!cm) + curl_global_init(CURL_GLOBAL_ALL); + + cm = curl_multi_init(); + if(!cm) { + curl_global_cleanup(); return 1; + } sh = curl_share_init(); if(!sh) goto cleanup; |