From e40b3bbb30236f42c7b1c1e45dcb583594de309d Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 19 Dec 2017 14:14:54 +0100 Subject: [PATCH] fetchurl: with_libc around curl_global_init This is needed when downloading files via https. --- repos/libports/src/app/fetchurl/component.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/libports/src/app/fetchurl/component.cc b/repos/libports/src/app/fetchurl/component.cc index 80beeeefa7..a4b127024f 100644 --- a/repos/libports/src/app/fetchurl/component.cc +++ b/repos/libports/src/app/fetchurl/component.cc @@ -79,7 +79,7 @@ void Libc::Component::construct(Libc::Env &env) Genode::Path<256> path; CURLcode res = CURLE_OK; - curl_global_init(CURL_GLOBAL_DEFAULT); + Libc::with_libc([&]() { curl_global_init(CURL_GLOBAL_DEFAULT); }); Genode::Xml_node config_node = config.xml();