[gtk/static-analysis-fixes: 10/13] textbtree: Static analysis fixes




commit a49ff5a1c433888b7d514265c2a3eb18ce91fd00
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 3 07:35:40 2021 -0400

    textbtree: Static analysis fixes

 gtk/gtktextbtree.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index bd0c817d98..748e65ae18 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -5420,8 +5420,7 @@ _gtk_text_btree_validate_line (GtkTextBTree     *tree,
   ld = _gtk_text_line_get_data (line, view_id);
   if (!ld || !ld->valid)
     {
-      ld = gtk_text_layout_wrap (view->layout, line, ld);
-      
+      gtk_text_layout_wrap (view->layout, line, ld);
       gtk_text_btree_node_check_valid_upward (line->parent, view_id);
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]