mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user