aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-09 09:30:25 -0500
committerTed Gould <ted@gould.cx>2010-07-09 09:30:25 -0500
commitdac4891e4e3c809ccc3ac08f0d7e317962808792 (patch)
treecce7652906d4e1fbfedd11ee8d6a6e037c1bf736 /libindicator/indicator-service.c
parentbc5e925ed181f2b64229afcac41bb4ba4f9aa4d1 (diff)
downloadlibayatana-indicator-dac4891e4e3c809ccc3ac08f0d7e317962808792.tar.gz
libayatana-indicator-dac4891e4e3c809ccc3ac08f0d7e317962808792.tar.bz2
libayatana-indicator-dac4891e4e3c809ccc3ac08f0d7e317962808792.zip
A could of protections for the core.
Diffstat (limited to 'libindicator/indicator-service.c')
-rw-r--r--libindicator/indicator-service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libindicator/indicator-service.c b/libindicator/indicator-service.c
index db234e2..fc35a03 100644
--- a/libindicator/indicator-service.c
+++ b/libindicator/indicator-service.c
@@ -466,6 +466,9 @@ _indicator_service_server_un_watch (IndicatorService * service, DBusGMethodInvoc
static void
unwatch_core (IndicatorService * service, const gchar * name)
{
+ g_return_if_fail(name != NULL);
+ g_return_if_fail(INDICATOR_IS_SERVICE(service));
+
IndicatorServicePrivate * priv = INDICATOR_SERVICE_GET_PRIVATE(service);
/* Remove us from the watcher list here */