From 2ce6f4b85d6765cfffbc78487bc7d3a36a1b1c9e Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 29 Jun 2013 06:08:57 +0000 Subject: [PATCH] =?UTF-8?q?[KERNEL32]=20-=20Fix=20use=20of=20uninitialized?= =?UTF-8?q?=20variables=20in=20failure=20case.=20Patch=20by=20Samuel=20Ser?= =?UTF-8?q?api=C3=B3n=20CORE-7302=20#resolve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=59355 --- reactos/dll/win32/kernel32/client/path.c | 2 +- reactos/dll/win32/kernel32/client/vdm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/kernel32/client/path.c b/reactos/dll/win32/kernel32/client/path.c index a1cce704dbe..a6e1692a909 100644 --- a/reactos/dll/win32/kernel32/client/path.c +++ b/reactos/dll/win32/kernel32/client/path.c @@ -990,7 +990,7 @@ GetFullPathNameA(IN LPCSTR lpFileName, OUT LPSTR *lpFilePart) { NTSTATUS Status; - PWCHAR Buffer; + PWCHAR Buffer = NULL; ULONG PathSize, FilePartSize; ANSI_STRING AnsiString; UNICODE_STRING FileNameString, UniString; diff --git a/reactos/dll/win32/kernel32/client/vdm.c b/reactos/dll/win32/kernel32/client/vdm.c index e41172982c9..bfbde543b6e 100644 --- a/reactos/dll/win32/kernel32/client/vdm.c +++ b/reactos/dll/win32/kernel32/client/vdm.c @@ -309,7 +309,7 @@ BaseCreateVDMEnvironment(IN PWCHAR lpEnvironment, { BOOL Result; ULONG RegionSize, EnvironmentSize = 0; - PWCHAR p, Environment, NewEnvironment; + PWCHAR p, Environment, NewEnvironment = NULL; NTSTATUS Status; /* Make sure we have both strings */