diff options
-rw-r--r-- | libappstream-glib/as-profile.c | 4 |
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 (); |