summaryrefslogtreecommitdiffstats
path: root/ucs2-interface/ucs-xml
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-06 17:23:39 +0200
committerRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-06 17:23:39 +0200
commit2cca6592aa29a043c5bb4e41a24d79a9626f2299 (patch)
treec78430ef628945a3646da8cfeda7bc04e199c79e /ucs2-interface/ucs-xml
parent8f175d6639eb2f54d9dc85268249fa7abceeb372 (diff)
fix uninitialized variable v
fix: -Werror=maybe-uninitialized Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'ucs2-interface/ucs-xml')
-rw-r--r--ucs2-interface/ucs-xml/UcsXml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucs2-interface/ucs-xml/UcsXml.c b/ucs2-interface/ucs-xml/UcsXml.c
index cd7c477..9a7a6fc 100644
--- a/ucs2-interface/ucs-xml/UcsXml.c
+++ b/ucs2-interface/ucs-xml/UcsXml.c
@@ -211,7 +211,7 @@ static ParseResult_t ParseRoutes(UcsXmlVal_t *v, PrivateData_t *vp);
UcsXmlVal_t *UcsXml_Parse(const char *xmlString)
{
- UcsXmlVal_t *v;
+ UcsXmlVal_t *v = NULL;
ParseResult_t result = Parse_Success;
mxml_node_t *tree = mxmlLoadString(NULL, xmlString, MXML_NO_CALLBACK);
if (!tree)