From c1ec4043338539261c1ed0ad5258000b91ba8337 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(-) 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