cssbordervalue: Fix possible use of uninitialised

If value->values[i] is NULL, then values[i] was left uninitialised.
The code then reads each element of values[].

CID 1432029 (#1 of 1): Uninitialized pointer read (UNINIT)
11. uninit_use: Using uninitialized value values[i].
This commit is contained in:
Daniel Boles 2017-08-01 19:31:20 +01:00
parent 0b230d34c4
commit 5e6293e54f

View File

@ -60,6 +60,10 @@ gtk_css_value_border_compute (GtkCssValue *value,
values[i] = _gtk_css_value_compute (value->values[i], property_id, provider, style, parent_style);
changed |= (values[i] != value->values[i]);
}
else
{
values[i] = NULL;
}
}
if (!changed)