state: avoid g_str_equal if a string might be NULL

This commit is contained in:
Øyvind Kolås 2010-06-25 02:02:48 +01:00
parent fbeab37828
commit b4607f7a37

View File

@ -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;