evas_object_textblock: fix warning the dereference before null check 26/190226/1
authorJiyoun Park <jy0703.park@samsung.com>
Fri, 28 Sep 2018 09:07:01 +0000 (18:07 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Fri, 28 Sep 2018 09:15:13 +0000 (18:15 +0900)
Change-Id: I1e473357002b8b012d42c961de8861a51351f27e

src/lib/evas/canvas/evas_object_textblock.c

index d88187f..69d84a0 100644 (file)
@@ -7203,14 +7203,14 @@ evas_textblock_style_free(Evas_Textblock_Style *ts)
 static void
 _evas_textblock_update_format_nodes_from_style_tag(Efl_Canvas_Text_Data *o)
 {
-   Evas_Object_Textblock_Node_Format *fnode = o->format_nodes;
-
    if (!o)
      {
         ERR("The given address Efl_Canvas_Text_Data is NULL");
         return;
      }
 
+   Evas_Object_Textblock_Node_Format *fnode = o->format_nodes;
+
    while (fnode)
      {
         const char *match;