From 7075047ce34c0640d09fcead7c1e61015b986886 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Fri, 25 Sep 2015 07:34:31 +0200 Subject: as_profile: Non-void function should return a value Reference: https://github.com/hughsie/appstream-glib/issues/65 Signed-off-by: Igor Gnatenko --- libappstream-glib/as-profile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libappstream-glib/as-profile.c b/libappstream-glib/as-profile.c index a872573..c0594b4 100644 --- a/libappstream-glib/as-profile.c +++ b/libappstream-glib/as-profile.c @@ -122,8 +122,8 @@ as_profile_start_literal (AsProfile *profile, const gchar *id) g_autofree gchar *id_thr = NULL; g_autoptr(GMutexLocker) locker = g_mutex_locker_new (&profile->mutex); - g_return_if_fail (AS_IS_PROFILE (profile)); - g_return_if_fail (id != NULL); + g_return_val_if_fail (AS_IS_PROFILE (profile), NULL); + g_return_val_if_fail (id != NULL, NULL); /* only use the thread ID when not using the main thread */ self = g_thread_self (); -- cgit v1.2.1