diff options
author | Ted Gould <ted@gould.cx> | 2010-01-06 23:23:08 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-06 23:23:08 -0600 |
commit | 2e2d1894a25c8d49a9cec7c0295f43c930a175cf (patch) | |
tree | 1f87304e6fe45c90ba073a9880dd85d82a2bc10f | |
parent | 679a4e15178874f21c655a3fdcaa581d0f83fbc0 (diff) | |
download | libdbusmenu-2e2d1894a25c8d49a9cec7c0295f43c930a175cf.tar.gz libdbusmenu-2e2d1894a25c8d49a9cec7c0295f43c930a175cf.tar.bz2 libdbusmenu-2e2d1894a25c8d49a9cec7c0295f43c930a175cf.zip |
Look for NULL strings instead of NULL itself
-rw-r--r-- | libdbusmenu-glib/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index dc1da4e..675a01d 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -369,7 +369,7 @@ dbus_owner_change (DBusGProxy * proxy, const gchar * name, const gchar * prev, c DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client); g_debug("Owner change: %s %s %s", name, prev, new); - if (!(new != NULL && prev == NULL)) { + if (!(new[0] != '\0' && prev[0] == '\0')) { /* If it's not someone new getting on the bus, sorry we simply just don't care. It's not that your service isn't important to someone, just not us. You'll find the right |