From 1410e0e3b636e57e5bb7e19911d984322f0458f3 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 9 Nov 2011 07:15:48 +0000 Subject: [PATCH] fix clang complaint: http://dev.enlightenment.fr/~discomfitor/eina-2011-11-08/report-izvfa3.html#EndPath SVN revision: 64973 --- legacy/eina/src/lib/eina_simple_xml_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/eina/src/lib/eina_simple_xml_parser.c b/legacy/eina/src/lib/eina_simple_xml_parser.c index 8d91a6ac3e..08a8259f71 100644 --- a/legacy/eina/src/lib/eina_simple_xml_parser.c +++ b/legacy/eina/src/lib/eina_simple_xml_parser.c @@ -349,7 +349,7 @@ eina_simple_xml_parse(const char *buf, unsigned buflen, Eina_Bool strip, Eina_Si p = _eina_simple_xml_tag_end_find(p + 1, itr_end); } - if (*p == '<') + if ((p) && (*p == '<')) { type = EINA_SIMPLE_XML_ERROR; toff = 0;