Gerald Pfeifer : gdi: Also initialize a variable in the failure case.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Apr 7 13:30:51 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: ac6d4f7e946140693b68d9af09109de63cd45d04
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=ac6d4f7e946140693b68d9af09109de63cd45d04

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Fri Apr  7 07:52:22 2006 +0200

gdi: Also initialize a variable in the failure case.

---

 dlls/gdi/tests/bitmap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi/tests/bitmap.c b/dlls/gdi/tests/bitmap.c
index 3fa2ee1..3c410a0 100644
--- a/dlls/gdi/tests/bitmap.c
+++ b/dlls/gdi/tests/bitmap.c
@@ -232,6 +232,7 @@ static INT DIB_GetWidthBytes( int width,
 	case 32: words = width; break;
 
         default:
+            words=0;
             trace("Unknown depth %d, please report.\n", bpp );
             assert(0);
             break;




More information about the wine-cvs mailing list