diff options
author | Avinash Sonawane <rootkea@gmail.com> | 2021-08-12 18:50:51 +0530 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2021-08-24 20:01:43 +0000 |
commit | 2e3ff5d8b8ce00249aacdf83db8150a85d69a1a8 (patch) | |
tree | c7bcfd104cf6c1b200ffd3eccf3ad37ac6532c31 | |
parent | 52d8c9fc56689c6ab4b271bbb7f2e6e19d83a769 (diff) | |
download | exo-2e3ff5d8b8ce00249aacdf83db8150a85d69a1a8.tar.gz |
Fix `G_UNLIKELY` check
Found by: scan-build
-rw-r--r-- | exo/exo-icon-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c index 89ed96f..733fc24 100644 --- a/exo/exo-icon-view.c +++ b/exo/exo-icon-view.c @@ -4113,7 +4113,7 @@ exo_icon_view_rows_reordered (GtkTreeModel *model, /* determine the number of items to reorder */ length = gtk_tree_model_iter_n_children (model, NULL); - if (G_UNLIKELY (length == 0)) + if (G_UNLIKELY (length <= 0)) return; list_array = g_newa (GList *, length); |