[evas/evas_object_textblock] When markup_to_utf8 is tried with an invalid
authorWooHyun Jung <woohyun0705@gmail.com>
Fri, 3 Feb 2012 11:24:44 +0000 (11:24 +0000)
committerWooHyun Jung <woohyun0705@gmail.com>
Fri, 3 Feb 2012 11:24:44 +0000 (11:24 +0000)
escape tag, escape will be NULL. "eina_strbuf_append" should not be
called with NULL string.

SVN revision: 67696

legacy/evas/src/lib/canvas/evas_object_textblock.c

index 53f9a77..07ef62f 100644 (file)
@@ -5284,7 +5284,7 @@ evas_textblock_text_markup_to_utf8(const Evas_Object *obj, const char *text)
                   const char *escape;
 
                   escape = _escaped_char_get(esc_start, esc_end + 1);
-                  eina_strbuf_append(sbuf, escape);
+                  if (escape) eina_strbuf_append(sbuf, escape);
                   esc_start = esc_end = NULL;
                }
              else if (*p == 0)