Mesa (mesa_7_6_branch): glu/sgi: Initialize variable in directedLine.
Vinson Lee
vlee at kemper.freedesktop.org
Thu Dec 24 01:51:03 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: 261c3cd530437362f906ef78459ffda7ab2b2077
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=261c3cd530437362f906ef78459ffda7ab2b2077
Author: Vinson Lee <vlee at vmware.com>
Date: Wed Dec 23 17:50:02 2009 -0800
glu/sgi: Initialize variable in directedLine.
---
src/glu/sgi/libnurbs/nurbtess/directedLine.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glu/sgi/libnurbs/nurbtess/directedLine.cc b/src/glu/sgi/libnurbs/nurbtess/directedLine.cc
index 7445035..5be1ae3 100644
--- a/src/glu/sgi/libnurbs/nurbtess/directedLine.cc
+++ b/src/glu/sgi/libnurbs/nurbtess/directedLine.cc
@@ -800,7 +800,7 @@ directedLine* readAllPolygons(char* filename)
{
Int nEdges;
fscanf(fp, "%i", &nEdges);
- Real vert[2][2];
+ Real vert[2][2] = { { 0 } };
Real VV[2][2];
/*the first two vertices*/
fscanf(fp, "%f", &(vert[0][0]));
More information about the mesa-commit
mailing list