[PATCH] initialize pointers to NULL
Marcus Meissner
marcus at jet.franken.de
Fri Mar 2 14:33:27 CST 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 64384cf..31d6bdb 100644
--- a/dlls/ntdll/sec.c
+++ b/dlls/ntdll/sec.c
@@ -1558,8 +1558,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