demos: silence uninitialized var warning
authorBrian Paul <brianp@vmware.com>
Wed, 4 Feb 2009 15:38:28 +0000 (08:38 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Feb 2009 23:33:25 +0000 (16:33 -0700)
progs/demos/engine.c

index 6040a2f1030dad433aed4d8e28ff65205710df57..d1c3237ac752bea8080b7bfbb0d9cc7b7b7f5e4c 100644 (file)
@@ -555,7 +555,7 @@ SquareWithHole(float squareSize, float holeRadius)
    for (i = 0; i <= 360; i += 5) {
       const float x1 = holeRadius * cos(DEG_TO_RAD(i));
       const float y1 = holeRadius * sin(DEG_TO_RAD(i));
-      float x2, y2;
+      float x2 = 0.0F, y2 = 0.0F;
       if (i > 315 || i <= 45) {
          x2 = squareSize;
          y2 = squareSize * tan(DEG_TO_RAD(i));