sysprof: Don't initialize GValue before evaluation

GtkExpression infrastructure already initializes the GValue.

Fixes a warning introduced by the previous commit.
This commit is contained in:
Georges Basile Stavracas Neto
2024-08-07 11:32:29 -03:00
parent 7cd51d1502
commit aa15d5f49f

View File

@ -330,7 +330,6 @@ sysprof_time_series_dup_label (SysprofTimeSeries *self,
if (!(item = g_list_model_get_item (model, position)))
return NULL;
g_value_init (&value, G_TYPE_STRING);
gtk_expression_evaluate (self->label_expression, item, &value);
return g_value_dup_string (&value);
}