From d53e74a8c99cc042dd1021e4327d22a762871630 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 11 Jan 2010 15:44:14 +0100 Subject: [PATCH] curl_xml plugin: Clear type_instance if it is not set. --- src/curl_xml.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/curl_xml.c b/src/curl_xml.c index 589d96f0..d7b80b28 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -416,6 +416,8 @@ static int cx_submit_xpath_values (char *plugin_instance, /* {{{ */ if (instance_node != NULL) sstrncpy (vl.type_instance, (char *) xmlNodeGetContent(instance_node->nodeTab[0]), sizeof (vl.type_instance)); + else + vl.type_instance[0] = 0; } /* free up object */ -- 2.30.2