diff options
author | monsta <monsta@inbox.ru> | 2014-11-20 11:29:00 +0300 |
---|---|---|
committer | Stefano Karapetsas <stefano@karapetsas.com> | 2014-11-20 09:30:42 +0100 |
commit | ece05e7059f946f44ffb4a1f75ec4e4d3f565f72 (patch) | |
tree | 1ca44778524028d596dbeb5447a2d29bfd05c638 | |
parent | 3c8dd6e27ed244059698fd981e239a2f9fab62f8 (diff) | |
download | mate-panel-ece05e7059f946f44ffb4a1f75ec4e4d3f565f72.tar.bz2 mate-panel-ece05e7059f946f44ffb4a1f75ec4e4d3f565f72.tar.xz |
Fix logic a bit - avoid dereferencing NULL pointer
Closes https://github.com/mate-desktop/mate-panel/pull/257
-rw-r--r-- | mate-panel/libpanel-util/panel-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 && |