[PATCH] version: initialize list (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Jan 4 06:01:13 CST 2014
1147963 Uninitialized scalar variable
---
dlls/version/version.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/version/version.c b/dlls/version/version.c
index a2f1801..84435eb 100644
--- a/dlls/version/version.c
+++ b/dlls/version/version.c
@@ -133,6 +133,7 @@ static const IMAGE_RESOURCE_DIRECTORY *find_entry_language( const IMAGE_RESOURCE
WORD list[9];
int i, pos = 0;
+ memset(list,0,sizeof(list));
/* cf. LdrFindResource_U */
pos = push_language( list, pos, MAKELANGID( LANG_NEUTRAL, SUBLANG_NEUTRAL ) );
pos = push_language( list, pos, LANGIDFROMLCID( NtCurrentTeb()->CurrentLocale ) );
--
1.8.4
More information about the wine-patches
mailing list