From 0d91cd7289dfc1e59658ea4a946a843a576496c8 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 6 Feb 2021 12:16:19 +0100 Subject: cppcheck warning: Checking if unsigned expression is less than zero --- plugins/taglist/pluma-taglist-plugin-panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/taglist/pluma-taglist-plugin-panel.c b/plugins/taglist/pluma-taglist-plugin-panel.c index 1784bc16..1e41b635 100644 --- a/plugins/taglist/pluma-taglist-plugin-panel.c +++ b/plugins/taglist/pluma-taglist-plugin-panel.c @@ -416,7 +416,7 @@ selected_group_changed (GtkComboBox *combo, group_name = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (combo)); - if ((group_name == NULL) || (strlen (group_name) <= 0)) + if ((group_name == NULL) || (*group_name == '\0')) { g_free (group_name); return; -- cgit v1.2.1