summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-26 22:11:58 +0200
committerrbuj <[email protected]>2021-10-26 22:11:58 +0200
commit875d18e6276f3f4f18082a3b4945fade452f0245 (patch)
treeb04b83320caf7d78e6cc151315c6e898d05eed52
parent0af959c26303eda2f7e16f938b4d9c6d2df2007e (diff)
downloadmate-menus-fix-build-error.tar.bz2
mate-menus-fix-build-error.tar.xz
fix build error: invalid operands to binary expressionfix-build-error
-rw-r--r--libmenu/matemenu-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmenu/matemenu-tree.c b/libmenu/matemenu-tree.c
index 88d933d..1965982 100644
--- a/libmenu/matemenu-tree.c
+++ b/libmenu/matemenu-tree.c
@@ -1809,7 +1809,7 @@ gpointer
matemenu_tree_item_ref (gpointer itemp)
{
MateMenuTreeItem* item = (MateMenuTreeItem*) itemp;
- g_return_val_if_fail(item != NULL || *item != NULL, NULL);
+ g_return_val_if_fail(item != NULL, NULL);
g_return_val_if_fail(item->refcount > 0, NULL);
g_atomic_int_inc (&item->refcount);