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:
parent
0b230d34c4
commit
5e6293e54f
@ -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);
|
values[i] = _gtk_css_value_compute (value->values[i], property_id, provider, style, parent_style);
|
||||||
changed |= (values[i] != value->values[i]);
|
changed |= (values[i] != value->values[i]);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
values[i] = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!changed)
|
if (!changed)
|
||||||
|
Loading…
Reference in New Issue
Block a user