X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcurl_xml.c;h=253356c0a015345a88d7d363b98678219e0d20b5;hb=063a5e75b36173e89ffa18d32d47509f6ef968ec;hp=e0e4a62ff1d00bd5a1056b5869b658f43e5832b7;hpb=21ab7512825cf8177d5eee5101344b45d0854610;p=collectd.git diff --git a/src/curl_xml.c b/src/curl_xml.c index e0e4a62f..253356c0 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -20,6 +20,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" #include "configfile.h" @@ -1024,7 +1025,7 @@ static int cx_config_add_url (oconfig_item_t *ci) /* {{{ */ /* If all went well, register this database for reading */ if (status == 0) { - user_data_t ud; + user_data_t ud = { 0 }; char *cb_name; if (db->instance == NULL) @@ -1033,7 +1034,6 @@ static int cx_config_add_url (oconfig_item_t *ci) /* {{{ */ DEBUG ("curl_xml plugin: Registering new read callback: %s", db->instance); - memset (&ud, 0, sizeof (ud)); ud.data = (void *) db; ud.free_func = cx_free;