aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-11 21:53:26 -0600
committerTed Gould <ted@gould.cx>2011-02-11 21:53:26 -0600
commite417951544c716a7f8ed3f7b348135e409cf1356 (patch)
tree01507dd71be1249c0c9c18af1556d40ed6013d01 /libdbusmenu-glib
parent8e2df412c61b984a9a463c8dc45b42d190cf5e01 (diff)
downloadlibdbusmenu-e417951544c716a7f8ed3f7b348135e409cf1356.tar.gz
libdbusmenu-e417951544c716a7f8ed3f7b348135e409cf1356.tar.bz2
libdbusmenu-e417951544c716a7f8ed3f7b348135e409cf1356.zip
Checking the strcmp0 value properly
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index d6e81c5..6a65b56 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -813,7 +813,7 @@ menuitem_property_changed (DbusmenuMenuitem * mi, gchar * property, GVariant * v
prop_idle_prop_t * prop = NULL;
for (i = 0; i < properties->len; i++) {
prop_idle_prop_t * iprop = &g_array_index(properties, prop_idle_prop_t, i);
- if (g_strcmp0(iprop->property, property)) {
+ if (g_strcmp0(iprop->property, property) == 0) {
prop = iprop;
break;
}