diff --git a/src/write_http.c b/src/write_http.c
index aabca3e945fd2a06229c2f9c301a6befb352c21f..eee5a1c66c9837bdf7165f61be09203f6f5b1c88 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
return (0);
} /* }}} int wh_config */
+static int wh_init (void) /* {{{ */
+{
+ /* Call this while collectd is still single-threaded to avoid
+ * initialization issues in libgcrypt. */
+ curl_global_init (CURL_GLOBAL_SSL);
+ return (0);
+} /* }}} int wh_init */
+
void module_register (void) /* {{{ */
{
plugin_register_complex_config ("write_http", wh_config);
+ plugin_register_init ("write_http", wh_init);
} /* }}} void module_register */
/* vim: set fdm=marker sw=8 ts=8 tw=78 et : */