efl text markup - fix hex check to be or not and - found by coverity
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 29 Sep 2017 00:03:04 +0000 (09:03 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 29 Sep 2017 00:03:04 +0000 (09:03 +0900)
fix CID 1381491

src/lib/efl/interfaces/efl_text_markup_util.c

index 9c8a9cf..bf296c1 100644 (file)
@@ -296,7 +296,7 @@ _escaped_char_get(const char *s, const char *s_end)
         int base = 10;
         s += 2; /* Skip "&#" */
 
-        if ((*s == 'x') && (*s == 'X'))
+        if ((*s == 'x') || (*s == 'X'))
           {
              s++;
              base = 16;