ecere/gfx/Surface: Fixed a Valgrind complaint about conditional jump with -O2
authorjerome <jerome@quantal.(none)>
Tue, 29 Jan 2013 12:26:36 +0000 (07:26 -0500)
committerjerome <jerome@quantal.(none)>
Tue, 29 Jan 2013 12:26:36 +0000 (07:26 -0500)
ecere/src/gfx/Surface.ec

index 5a6bb1c..1a4c201 100644 (file)
@@ -416,7 +416,7 @@ public:
          float inc = 1.0f/(height-1);
          float percent = 0;
          int start;
-         ColorAlpha color;
+         ColorAlpha color = 0;
          int firstPixel = (direction == horizontal) ? x1 : y1;
          int lastPixel = (direction == horizontal) ? x2 : y2;
          int boxLeft = (direction == horizontal) ? box.left : box.top;