mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 23:50:16 +00:00
roundedbox: Initialize the hashtable key before using it
In mem_hash, we are iterating over the individual bytes of the key, so make sure all of it is initialized.
This commit is contained in:
parent
a72c4576b2
commit
71b360cc8e
@ -278,6 +278,7 @@ append_arc (cairo_t *cr, double angle1, double angle2, gboolean negative)
|
|||||||
Arc key;
|
Arc key;
|
||||||
cairo_path_t *arc;
|
cairo_path_t *arc;
|
||||||
|
|
||||||
|
memset (&key, 0, sizeof (Arc));
|
||||||
key.angle1 = angle1;
|
key.angle1 = angle1;
|
||||||
key.angle2 = angle2;
|
key.angle2 = angle2;
|
||||||
key.negative = negative;
|
key.negative = negative;
|
||||||
|
Loading…
Reference in New Issue
Block a user