declare variables at the beginning of the block
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 11 Dec 2010 09:00:13 +0000 (09:00 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 11 Dec 2010 09:00:13 +0000 (09:00 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@55491 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 305d809..20583ec 100644 (file)
@@ -4841,10 +4841,11 @@ evas_textblock_cursor_line_char_last(Evas_Textblock_Cursor *cur)
 static Eina_Bool
 _evas_textblock_format_is_visible(const char *s)
 {
-   if (!s) return EINA_FALSE;
    const char *item;
    Eina_Bool is_opener = EINA_TRUE;
 
+   if (!s) return EINA_FALSE;
+
    if (s[0] == '+' || s[0] == '-')
      {
         is_opener = (s[0] == '+') ? EINA_TRUE : EINA_FALSE;