aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-23 16:25:23 -0500
committerTed Gould <ted@gould.cx>2011-09-23 16:25:23 -0500
commit1de08ee692a68f7511e8096afde13cf8ae4217a1 (patch)
tree818dcea667e3064362c4b224c9d9052b40f58d0b /libdbusmenu-glib
parente7acae9db34e6abea6b7aa1fe532ad18e13577c7 (diff)
downloadlibdbusmenu-1de08ee692a68f7511e8096afde13cf8ae4217a1.tar.gz
libdbusmenu-1de08ee692a68f7511e8096afde13cf8ae4217a1.tar.bz2
libdbusmenu-1de08ee692a68f7511e8096afde13cf8ae4217a1.zip
Protecting against NULL private areas
Diffstat (limited to 'libdbusmenu-glib')
-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 24d5c5d..a51379f 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -1050,7 +1050,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) {