summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2015-09-25 07:34:31 +0200
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2015-09-25 07:34:31 +0200
commit7075047ce34c0640d09fcead7c1e61015b986886 (patch)
tree9567bdb2f7d9dfb4f4aea6f62aab1edd85dfe1e3
parent24ee0d971b74037f8724a1eefd6ffd8c0ce4e649 (diff)
downloadappstream-glib-ignatenko/patch1.tar.gz
as_profile: Non-void function should return a valueignatenko/patch1
Reference: https://github.com/hughsie/appstream-glib/issues/65 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
-rw-r--r--libappstream-glib/as-profile.c4
1 files 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 ();