Michael Stefaniuc : gdi32/tests: Don' t clear a variable before it goes out of scope (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Nov 28 12:49:04 CST 2014
Module: wine
Branch: master
Commit: 80218d19ef5af1d3169e7a4d05f5fc1e802f8476
URL: http://source.winehq.org/git/wine.git/?a=commit;h=80218d19ef5af1d3169e7a4d05f5fc1e802f8476
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Fri Nov 28 10:57:45 2014 +0100
gdi32/tests: Don't clear a variable before it goes out of scope (PVS-Studio).
---
dlls/gdi32/tests/bitmap.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c
index 2a2dd3a..351a5ca 100644
--- a/dlls/gdi32/tests/bitmap.c
+++ b/dlls/gdi32/tests/bitmap.c
@@ -4540,7 +4540,6 @@ static void test_GetDIBits_scanlines(void)
ok( ret == 2, "got %d\n", ret );
ok( !memcmp( data, inverted_bits + 32, 16 * 4 ), "bits differ\n");
for (i = 16; i < 128; i++) ok( data[i] == 0xaaaaaaaa, "%d: got %08x\n", i, data[i] );
- memset( data, 0xaa, sizeof(data) );
DeleteObject( dib );
More information about the wine-cvs
mailing list