[gtk/static-analysis-fixes: 5/13] emojichooser: Static analysis fixes




commit 2f51f5affee3fb6f86f799451eb099ccfdd8be77
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 3 07:34:04 2021 -0400

    emojichooser: Static analysis fixes

 gtk/gtkemojichooser.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index f778684d33..646be90ed3 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -1110,6 +1110,8 @@ keynav_failed (GtkWidget        *box,
         }
     }
 
+  n_columns = MAX (n_columns, 1);
+
   child = gtk_widget_get_ancestor (focus, GTK_TYPE_EMOJI_CHOOSER_CHILD);
 
   i = 0;


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