summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-08-17 18:37:10 -0700
committerKeith Packard <keithp@keithp.com>2015-08-17 18:50:25 -0700
commitbca4f4b56c7619d17f9df46f7aac392ea01a9429 (patch)
treeb9a04ce5a64eac3e8baf09bf765743baedd99387 /mi
parent5daf1295cb4f71510da595721d10f7ea3b74d1b9 (diff)
mi: Always initialize edge1 and edge2 in miLineArc
This eliminates a warning generated when miLineArcD is inlined and the compiler can't figure out that edge1 and edge2 are always initialized before being used. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'mi')
-rw-r--r--mi/miwideline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/miwideline.c b/mi/miwideline.c
index 3baa99bfb..54de1d3e6 100644
--- a/mi/miwideline.c
+++ b/mi/miwideline.c
@@ -1454,7 +1454,7 @@ miLineArc(DrawablePtr pDraw,
int xorgi = 0, yorgi = 0;
Spans spanRec;
int n;
- PolyEdgeRec edge1, edge2;
+ PolyEdgeRec edge1 = { 0 }, edge2 = { 0 };
int edgey1, edgey2;
Bool edgeleft1, edgeleft2;