1ff636
From 86592a27154d8da0e695304a75ae1458c574c962 Mon Sep 17 00:00:00 2001
1ff636
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
1ff636
Date: Tue, 24 Feb 2015 20:40:07 +0100
1ff636
Subject: [PATCH] acl-util: avoid freeing uninitialized pointer
1ff636
1ff636
CID#1271344/1271345
1ff636
1ff636
(cherry picked from commit 76dcbc4992e895a377aad26f8c4a0dcd71002396)
1ff636
---
1ff636
 src/shared/acl-util.c | 4 ++--
1ff636
 1 file changed, 2 insertions(+), 2 deletions(-)
1ff636
1ff636
diff --git a/src/shared/acl-util.c b/src/shared/acl-util.c
c62b8e
index cbe09d7aba..e67e9acb6a 100644
1ff636
--- a/src/shared/acl-util.c
1ff636
+++ b/src/shared/acl-util.c
1ff636
@@ -302,7 +302,7 @@ static int acl_entry_equal(acl_entry_t a, acl_entry_t b) {
1ff636
                 /* can have only one of those */
1ff636
                 return true;
1ff636
         case ACL_USER: {
1ff636
-                _cleanup_(acl_free_uid_tpp) uid_t *uid_a, *uid_b;
1ff636
+                _cleanup_(acl_free_uid_tpp) uid_t *uid_a = NULL, *uid_b = NULL;
1ff636
 
1ff636
                 uid_a = acl_get_qualifier(a);
1ff636
                 if (!uid_a)
1ff636
@@ -315,7 +315,7 @@ static int acl_entry_equal(acl_entry_t a, acl_entry_t b) {
1ff636
                 return *uid_a == *uid_b;
1ff636
         }
1ff636
         case ACL_GROUP: {
1ff636
-                _cleanup_(acl_free_gid_tpp) gid_t *gid_a, *gid_b;
1ff636
+                _cleanup_(acl_free_gid_tpp) gid_t *gid_a = NULL, *gid_b = NULL;
1ff636
 
1ff636
                 gid_a = acl_get_qualifier(a);
1ff636
                 if (!gid_a)