From 79e774b91d5111bcfb0165cb8268e125f6770ac1 Mon Sep 17 00:00:00 2001 From: raster 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 git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@64973 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_simple_xml_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina_simple_xml_parser.c b/src/lib/eina_simple_xml_parser.c index 8d91a6a..08a8259 100644 --- a/src/lib/eina_simple_xml_parser.c +++ b/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; -- 2.7.4