From 6386f80dbd6f1230abf16fa5ac65dc0dca70033a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 31 Jan 2012 07:01:29 -0700 Subject: vega: memset data array to zero to silence uninitialized var warnings --- src/gallium/state_trackers/vega/path.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/vega/path.c b/src/gallium/state_trackers/vega/path.c index e62d1e32288..43755f44d5d 100644 --- a/src/gallium/state_trackers/vega/path.c +++ b/src/gallium/state_trackers/vega/path.c @@ -367,6 +367,8 @@ static struct polygon_array * path_get_fill_polygons(struct path *p, struct matr void *coords = (VGfloat *)p->control_points->data; struct array *array; + memset(data, 0, sizeof(data)); + if (p->fill_polys.polygon_array.array) { if (memcmp( &p->fill_polys.matrix, -- cgit v1.2.3