aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-29 14:33:58 -0500
committerTed Gould <ted@gould.cx>2011-09-29 14:33:58 -0500
commit10e5acaeaceb88985baf1b8223f601dcf775f0c6 (patch)
treed9995209e9e07ce54285d65af7942753076cb489
parent031ff0b4400551f272f876ed2eb63a4f0c2a3a49 (diff)
parent1de08ee692a68f7511e8096afde13cf8ae4217a1 (diff)
downloadlibdbusmenu-10e5acaeaceb88985baf1b8223f601dcf775f0c6.tar.gz
libdbusmenu-10e5acaeaceb88985baf1b8223f601dcf775f0c6.tar.bz2
libdbusmenu-10e5acaeaceb88985baf1b8223f601dcf775f0c6.zip
More NULL protection
-rw-r--r--libdbusmenu-glib/client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 1ee8641..a7f4da5 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -1057,7 +1057,12 @@ menuproxy_build_cb (GObject * object, GAsyncResult * res, gpointer user_data)
/* If this wasn't cancelled, we should be good */
DbusmenuClient * client = DBUSMENU_CLIENT(user_data);
+ /* But let's check */
+ g_return_if_fail(client != NULL);
DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client);
+ g_return_if_fail(priv != NULL);
+
+
priv->menuproxy = proxy;
if (priv->menuproxy_cancel != NULL) {