summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-09-29 12:47:15 +0200
committerAlexander Larsson <alexl@redhat.com>2010-09-29 12:47:15 +0200
commit1670b220b5a60bb957967a5d5424d129cbd909ee (patch)
tree0bc6a1df8e0573ed471c95b378dacc3fa87538e5 /common
parent8e14489621194a261cbf95f037f1b7ddfff0018f (diff)
downloadspice-1670b220b5a60bb957967a5d5424d129cbd909ee.tar.gz
spice-1670b220b5a60bb957967a5d5424d129cbd909ee.tar.xz
spice-1670b220b5a60bb957967a5d5424d129cbd909ee.zip
Initialize variable to avoid compiler warning
Seems the OSX gcc warns on saveRight not being initialzied.
Diffstat (limited to 'common')
-rw-r--r--common/lines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/lines.c b/common/lines.c
index d2e997e7..1a14c188 100644
--- a/common/lines.c
+++ b/common/lines.c
@@ -2985,7 +2985,7 @@ miWideDashSegment (GCPtr pGC,
double L, l;
double k;
PolyVertexRec vertices[4];
- PolyVertexRec saveRight, saveBottom;
+ PolyVertexRec saveRight = { 0 }, saveBottom;
PolySlopeRec slopes[4];
PolyEdgeRec left[2], right[2];
LineFaceRec lcapFace, rcapFace;