[PATCH] (resubmit) initialize pointers to NULL

Marcus Meissner marcus at jet.franken.de
Tue May 22 15:33:27 CDT 2007


Hi,

spotted by Coverity.

It is not actually using those pointers, since the
size accompanying it will always be 0.

But initialize them anyway.

Ciao, Marcus
---
 dlls/ntdll/sec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c
index ee1d9b2..7093b44 100644
--- a/dlls/ntdll/sec.c
+++ b/dlls/ntdll/sec.c
@@ -1561,8 +1561,8 @@ NTSTATUS WINAPI NtSetSecurityObject(HAND
 {
     NTSTATUS status;
     struct security_descriptor sd;
-    PACL dacl, sacl;
-    PSID owner, group;
+    PACL dacl = NULL, sacl = NULL;
+    PSID owner = NULL, group = NULL;
     BOOLEAN defaulted, present;
     DWORD revision;
     SECURITY_DESCRIPTOR_CONTROL control;
-- 
1.4.3.4



More information about the wine-patches mailing list