Alex Henrie : ntdll: Ensure that performance information is initialized (scan-build).

Alexandre Julliard julliard at winehq.org
Thu Sep 19 16:35:19 CDT 2019


Module: wine
Branch: master
Commit: eb699821d038409591d35a46b6810b2b459080fb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=eb699821d038409591d35a46b6810b2b459080fb

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Wed Sep 11 21:05:31 2019 -0600

ntdll: Ensure that performance information is initialized (scan-build).

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard 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 06f8f39b16..5afdf77986 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -2439,7 +2439,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(
 
             if ((fp = fopen("/proc/meminfo", "r")))
             {
-                unsigned long long totalram, freeram, totalswap, freeswap;
+                unsigned long long totalram = 0, freeram = 0, totalswap = 0, freeswap = 0;
                 char line[64];
                 while (fgets(line, sizeof(line), fp))
                 {




More information about the wine-cvs mailing list