glu/sgi: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Wed, 23 Dec 2009 07:07:00 +0000 (23:07 -0800)
committerVinson Lee <vlee@vmware.com>
Wed, 23 Dec 2009 07:07:00 +0000 (23:07 -0800)
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.cc
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.cc

index e12f88bab12bce73a87c3f9c01485bf2f93fb222..2e70f839363b4aad95ba2409e834fa600eb45d9d 100644 (file)
@@ -207,7 +207,7 @@ void sampleBotRightWithGridLine(Real* botVertex,
     return;
   }
 
-  Int segIndexMono, segIndexPass;
+  Int segIndexMono = 0, segIndexPass;
   findBotRightSegment(rightChain,
                      rightEnd,
                      rightCorner,
@@ -293,7 +293,7 @@ void sampleBotLeftWithGridLine(Real* botVertex,
     return;
   }
 
-  Int segIndexPass, segIndexMono;
+  Int segIndexPass, segIndexMono = 0;
   findBotLeftSegment(leftChain, leftEnd, leftCorner, grid->get_u_value(leftU), segIndexMono, segIndexPass);
 
   sampleBotLeftWithGridLinePost(botVertex,
index b7b929623a2f917e35f2bd3ff88e56d41029ac25..951e937c45f295a120ca70a0578f6ed7381cc693 100644 (file)
@@ -172,7 +172,7 @@ void sampleTopRightWithGridLine(Real* topVertex,
     return;
   }
 
-  Int segIndexSmall, segIndexLarge;
+  Int segIndexSmall = 0, segIndexLarge;
   findTopRightSegment(rightChain,
                       rightStart,
                       rightEnd,
@@ -294,7 +294,7 @@ void sampleTopLeftWithGridLine(Real* topVertex,
                                 primStream* pStream
                                 )
 {
-  Int segIndexSmall, segIndexLarge;
+  Int segIndexSmall = 0, segIndexLarge;
   //if left chain is empty, then there is only one top vertex with one grid 
   //  line
   if(leftEnd < leftStart) {