You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2022/11/25 12:19:55 UTC

[commons-daemon] branch master updated: Avoid referencing uninitialised variables in clean-up

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git


The following commit(s) were added to refs/heads/master by this push:
     new 332795c  Avoid referencing uninitialised variables in clean-up
332795c is described below

commit 332795c30b54bec45a6095dde50edf19684ddd28
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Nov 25 12:19:50 2022 +0000

    Avoid referencing uninitialised variables in clean-up
---
 src/native/windows/src/security.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/native/windows/src/security.c b/src/native/windows/src/security.c
index b2d0b0b..6cda7cb 100644
--- a/src/native/windows/src/security.c
+++ b/src/native/windows/src/security.c
@@ -29,8 +29,8 @@ apxSecurityGrantFileAccessToUser(
     WCHAR sUser[SIZ_RESLEN];
     DWORD dwResult;
     PACL pOldDACL;
-    PACL pNewDACL;
-    PSECURITY_DESCRIPTOR pSD;
+    PACL pNewDACL = NULL;
+    PSECURITY_DESCRIPTOR pSD = NULL;
     EXPLICIT_ACCESS ea;
 
     if (szPath) {