Andrew Eikum : ntdll: Initialize variable (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 12 06:45:27 CDT 2016


Module: wine
Branch: stable
Commit: f9d79dcd73af8bb63b4285b6511372db5f9d6aeb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f9d79dcd73af8bb63b4285b6511372db5f9d6aeb

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Wed Feb 10 12:53:42 2016 -0600

ntdll: Initialize variable (Coverity).

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 0df38064c2940275c110274c9880ec4e7b0e8e3d)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/ntdll/nt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index a7c033f..0a96efe 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -2307,7 +2307,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(
 NTSTATUS WINAPI NtQuerySystemInformationEx(SYSTEM_INFORMATION_CLASS SystemInformationClass,
     void *Query, ULONG QueryLength, void *SystemInformation, ULONG Length, ULONG *ResultLength)
 {
-    ULONG len;
+    ULONG len = 0;
     NTSTATUS ret = STATUS_NOT_IMPLEMENTED;
 
     TRACE("(0x%08x,%p,%u,%p,%u,%p) stub\n", SystemInformationClass, Query, QueryLength, SystemInformation,




More information about the wine-cvs mailing list