From b4607f7a37597f6d45d356d8a85ce3f8f40def1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Fri, 25 Jun 2010 02:02:48 +0100 Subject: [PATCH] state: avoid g_str_equal if a string might be NULL --- clutter/clutter-state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter-state.c b/clutter/clutter-state.c index 4de4293bd..01cc81150 100644 --- a/clutter/clutter-state.c +++ b/clutter/clutter-state.c @@ -402,6 +402,7 @@ clutter_state_new_frame (ClutterTimeline *timeline, { if (key->source_state != NULL && key->source_state->name != NULL && + priv->source_state_name != NULL && g_str_equal (priv->source_state_name, key->source_state->name)) { found_specific = TRUE;