diff options
author | Ted Gould <ted@gould.cx> | 2011-09-29 14:33:58 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-09-29 14:33:58 -0500 |
commit | 10e5acaeaceb88985baf1b8223f601dcf775f0c6 (patch) | |
tree | d9995209e9e07ce54285d65af7942753076cb489 | |
parent | 031ff0b4400551f272f876ed2eb63a4f0c2a3a49 (diff) | |
parent | 1de08ee692a68f7511e8096afde13cf8ae4217a1 (diff) | |
download | libdbusmenu-10e5acaeaceb88985baf1b8223f601dcf775f0c6.tar.gz libdbusmenu-10e5acaeaceb88985baf1b8223f601dcf775f0c6.tar.bz2 libdbusmenu-10e5acaeaceb88985baf1b8223f601dcf775f0c6.zip |
More NULL protection
-rw-r--r-- | libdbusmenu-glib/client.c | 5 |
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) { |