ecere/gfx/Bitmap: Fixed returning uninitialized value on failure to obtain a Surface
authorJerome St-Louis <jerome@ecere.com>
Tue, 11 Mar 2014 04:01:42 +0000 (00:01 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 11 Mar 2014 04:01:42 +0000 (00:01 -0400)
ecere/src/gfx/Bitmap.ec

index 93bce15..3d9ad51 100644 (file)
@@ -284,7 +284,7 @@ public:
 
    Surface GetSurface(int x, int y, Box clip)
    {
-      Surface result;
+      Surface result = null;
       Surface surface { };
       if(surface)
       {