From b408be0b1e32b0993e3dcb6fa402ed519395d043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 25 May 2023 16:41:39 +0200 Subject: [PATCH] clutter/actor: Return NULL instead of FALSE when type check fails Fix a small oversight in clutter_actor_peek_stage_views(), it should return NULL instead of FALSE when the check fails. Part-of: --- clutter/clutter/clutter-actor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index 1ed3d57c9..6235bbf7f 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -15642,7 +15642,7 @@ clutter_actor_finish_layout (ClutterActor *self, GList * clutter_actor_peek_stage_views (ClutterActor *self) { - g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE); + g_return_val_if_fail (CLUTTER_IS_ACTOR (self), NULL); return CLUTTER_ACTOR_IS_TOPLEVEL (self) ? clutter_stage_peek_stage_views (CLUTTER_STAGE (self))