diff options
author | monsta <[email protected]> | 2014-11-20 11:29:00 +0300 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2015-03-15 22:39:52 +0100 |
commit | c1ec4043338539261c1ed0ad5258000b91ba8337 (patch) | |
tree | 3ffe76ea0199aca99396544f93bd6276e25572d0 | |
parent | 45f9dd1209ea5715b02d5d1a5e9e2dd51220da1e (diff) | |
download | mate-panel-c1ec4043338539261c1ed0ad5258000b91ba8337.tar.bz2 mate-panel-c1ec4043338539261c1ed0ad5258000b91ba8337.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 && |