aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-23 14:54:25 -0500
committerTed Gould <ted@gould.cx>2011-09-23 14:54:25 -0500
commit62ad6229ccf90ecbd93738d4ca6c547b02bab52e (patch)
tree8b19cf198c0406aa47cfc6b04cf25c3c6d9ef07f /libdbusmenu-glib
parent4f43bbc76e738ecb3b03d848b447ac9dfe64faa3 (diff)
downloadlibdbusmenu-62ad6229ccf90ecbd93738d4ca6c547b02bab52e.tar.gz
libdbusmenu-62ad6229ccf90ecbd93738d4ca6c547b02bab52e.tar.bz2
libdbusmenu-62ad6229ccf90ecbd93738d4ca6c547b02bab52e.zip
Protect against an odd crash. Not sure how the private becomes 'NULL'
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 a41e6ce..7bfac3a 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -1188,7 +1188,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 */
gint parent = g_variant_get_int32(g_variant_get_child_value(params, 0));