aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-15 11:13:18 -0600
committerTed Gould <ted@gould.cx>2012-02-15 11:13:18 -0600
commit595dc9307fb725c8cdfd7507bafe76b8c257df9b (patch)
tree0d0bc35cf3b498e529f8b6fa826af537683e8e5f /libdbusmenu-glib
parent90aa71ca8b1ef10d2dfad3b5f18212fc50d0c088 (diff)
parent62b028c0f6cff245f8781a5a4e769be20b2afba1 (diff)
downloadlibdbusmenu-595dc9307fb725c8cdfd7507bafe76b8c257df9b.tar.gz
libdbusmenu-595dc9307fb725c8cdfd7507bafe76b8c257df9b.tar.bz2
libdbusmenu-595dc9307fb725c8cdfd7507bafe76b8c257df9b.zip
Ensure the hash variant isn't NULL in the comparison
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/menuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c
index 30ae277..18db4ef 100644
--- a/libdbusmenu-glib/menuitem.c
+++ b/libdbusmenu-glib/menuitem.c
@@ -1222,7 +1222,7 @@ dbusmenu_menuitem_property_set_variant (DbusmenuMenuitem * mi, const gchar * pro
but we're actually replacing it no matter. This is so that
the variant passed in sticks around which the caller may
expect. They shouldn't, but it's low cost to remove bugs. */
- if (!inhash || !g_variant_equal(hash_variant, value)) {
+ if (!inhash || (hash_variant != NULL && !g_variant_equal(hash_variant, value))) {
replaced = TRUE;
}