aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-27 11:00:57 -0500
committerTed Gould <ted@gould.cx>2011-09-27 11:00:57 -0500
commitae5cc66dfcc419e28178b6061fcd2ef0a9209d87 (patch)
tree1fc2b93f98e52fcae39dfeef7d030f8f858d38a1 /libdbusmenu-glib
parentb39934fcefb0097d2727fa6c79a13326c217c544 (diff)
parent62ad6229ccf90ecbd93738d4ca6c547b02bab52e (diff)
downloadlibdbusmenu-ae5cc66dfcc419e28178b6061fcd2ef0a9209d87.tar.gz
libdbusmenu-ae5cc66dfcc419e28178b6061fcd2ef0a9209d87.tar.bz2
libdbusmenu-ae5cc66dfcc419e28178b6061fcd2ef0a9209d87.zip
Protect from NULL privates
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index c7057df..9c085f7 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -1194,7 +1194,9 @@ error_quark (void)
static void
bus_get_layout (DbusmenuServer * server, GVariant * params, GDBusMethodInvocation * invocation)
{
+ g_return_if_fail(DBUSMENU_IS_SERVER(server));
DbusmenuServerPrivate * priv = DBUSMENU_SERVER_GET_PRIVATE(server);
+ g_return_if_fail(priv != NULL);
/* Input */
gint32 parent;