From 669455d56246517cb04038b11f977c01d080ef27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 19 Jun 2021 17:25:14 +0800 Subject: No curl init for Emscripten --- client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.c b/client.c index b66470f..d88bafb 100644 --- a/client.c +++ b/client.c @@ -34,7 +34,9 @@ void icclient_init(const char *url, const char *dir, const char *cert) certificate = malloc(strlen(certificate) + 1); strcpy(certificate, cert); } +#ifndef __EMSCRIPTEN__ curl_global_init(CURL_GLOBAL_SSL); +#endif } void icclient_catalog(const char *prod_group, void (*handler)(icclient_response *), void (*callback)(struct icclient_catalog *)) -- cgit v1.2.3