From 77ceead6e1b2b49157cc6fe63844946e1163c39f Mon Sep 17 00:00:00 2001 From: Prince Kumar Dubey Date: Fri, 13 Oct 2017 12:07:25 -0700 Subject: [PATCH] efl: unsigned int/long never be less than zero. Fixed. Reviewers: raster, cedric Subscribers: rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5300 Signed-off-by: Cedric Bail --- unsorted/eina/eina_simple_xml_parser_02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsorted/eina/eina_simple_xml_parser_02.c b/unsorted/eina/eina_simple_xml_parser_02.c index 0d8269a8..5c0cf088 100644 --- a/unsorted/eina/eina_simple_xml_parser_02.c +++ b/unsorted/eina/eina_simple_xml_parser_02.c @@ -17,7 +17,7 @@ static Eina_Bool _xml_tag_parse_cb(void *data, Eina_Simple_XML_Type type, const char *content, unsigned offset EINA_UNUSED, unsigned int length) { - if (length <= 0) return EINA_FALSE; + if (length == 0) return EINA_FALSE; if (type == EINA_SIMPLE_XML_OPEN) {