OSDN Git Service

vega: memset data array to zero to silence uninitialized var warnings
authorBrian Paul <brianp@vmware.com>
Tue, 31 Jan 2012 14:01:29 +0000 (07:01 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 31 Jan 2012 14:04:25 +0000 (07:04 -0700)
(cherry picked from commit 6386f80dbd6f1230abf16fa5ac65dc0dca70033a)

src/gallium/state_trackers/vega/path.c

index e62d1e3..43755f4 100644 (file)
@@ -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,