summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVolodymyr Brynza <v.brynza@samsung.com>2015-12-08 10:36:09 +0200
committerSangchul Lee <sc11.lee@samsung.com>2015-12-08 01:07:33 -0800
commitbd31ed765be6b9e5ea310e87edcfb41ef88a9932 (patch)
tree226edc0418fefdc29d33ef485e68427c720f8a49 /src
parent078f48a18bb2c8816f6d244a2c9684913ead5303 (diff)
downloadmurphy-bd31ed765be6b9e5ea310e87edcfb41ef88a9932.tar.gz
murphy-bd31ed765be6b9e5ea310e87edcfb41ef88a9932.tar.bz2
murphy-bd31ed765be6b9e5ea310e87edcfb41ef88a9932.zip
Change-Id: I26b518f3c0fc6ce0a3e6f0e0681cbc86ae8c8219 Signed-off-by: Volodymyr Brynza <v.brynza@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/common/glib-glue.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/glib-glue.c b/src/common/glib-glue.c
index 2df2ea7..8ffd3a8 100644
--- a/src/common/glib-glue.c
+++ b/src/common/glib-glue.c
@@ -171,8 +171,14 @@ static void del_io(void *glue_data, void *id)
static gboolean timer_cb(gpointer user_data)
{
+ if (user_data == NULL)
+ return FALSE;
+
tmr_t *t = (tmr_t *)user_data;
+ if (t->cb == NULL)
+ return FALSE;
+
t->cb(t->glue_data, t, t->user_data);
return TRUE;
@@ -231,8 +237,14 @@ static void mod_timer(void *glue_data, void *id, unsigned int msecs)
static gboolean defer_cb(void *user_data)
{
+ if (user_data == NULL)
+ return FALSE;
+
dfr_t *d = (dfr_t *)user_data;
+ if (d->cb == NULL)
+ return FALSE;
+
d->cb(d->glue_data, d, d->user_data);
return TRUE;