diff options
Diffstat (limited to 'src/common/glib-glue.c')
-rw-r--r-- | src/common/glib-glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/glib-glue.c b/src/common/glib-glue.c index ef6e6a8..a1f7275 100644 --- a/src/common/glib-glue.c +++ b/src/common/glib-glue.c @@ -386,7 +386,7 @@ static void *add_defer(void *glue_data, dfr_t *d; glib_glue_t *glue = (glib_glue_t *)glue_data; - g_return_if_fail(glue); + g_return_val_if_fail(glue, NULL); g_mutex_lock(&glue->glue_internal_lock); d = mrp_allocz(sizeof(*d)); @@ -497,7 +497,7 @@ static gpointer thread_main (gpointer data) { glib_glue_t *glue = (glib_glue_t *)data; - g_return_if_fail(glue); + g_return_val_if_fail(glue, NULL); GMainContext *thread_main_context = g_main_loop_get_context(glue->gml); /* Set up the thread’s context and run it. */ |