[evas/evas_object_textblock] When markup_to_utf8 is tried with an invalid
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 3 Feb 2012 11:24:44 +0000 (11:24 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
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.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@67696 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

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)