From ece05e7059f946f44ffb4a1f75ec4e4d3f565f72 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 20 Nov 2014 11:29:00 +0300 Subject: Fix logic a bit - avoid dereferencing NULL pointer Closes https://github.com/mate-desktop/mate-panel/pull/257 --- mate-panel/libpanel-util/panel-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mate-panel/libpanel-util') diff --git a/mate-panel/libpanel-util/panel-list.c b/mate-panel/libpanel-util/panel-list.c index 154153cf..3c0a9eec 100644 --- a/mate-panel/libpanel-util/panel-list.c +++ b/mate-panel/libpanel-util/panel-list.c @@ -166,7 +166,7 @@ panel_g_list_resort_item (GList *list, dl = g_list_find (list, data); - if (dl != NULL) + if (dl == NULL) return list; while (dl->next && -- cgit v1.2.1