aboutsummaryrefslogtreecommitdiffstats
path: root/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c
index 806792f..fa0e32f 100644
--- a/init/init.c
+++ b/init/init.c
@@ -5,6 +5,8 @@
#include <sys/resource.h>
#include <sys/wait.h>
+#include <curl/curl.h>
+
#include <config.h>
#include <init.h>
#include <log.h>
@@ -86,6 +88,10 @@ int main(void)
strcpy(token, "Authorization: Bot ");
strcat(token, token_base);
+ /* init curl */
+ if(curl_global_init(CURL_GLOBAL_DEFAULT))
+ panic("init: curl init failed");
+
/* Rest of the program.. */
do_initcalls();