summaryrefslogtreecommitdiff
path: root/src/shared/acl-util.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-02-24 20:40:07 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-02-24 20:42:40 +0100
commit76dcbc4992e895a377aad26f8c4a0dcd71002396 (patch)
tree1c3328d01d77c36be6f1d11ddef494ab0d49c6f0 /src/shared/acl-util.c
parent4f3c1682029450f5d93cb282343035d0cf3dd407 (diff)
downloadsystemd-76dcbc4992e895a377aad26f8c4a0dcd71002396.tar.gz
acl-util: avoid freeing uninitialized pointer
CID#1271344/1271345
Diffstat (limited to 'src/shared/acl-util.c')
-rw-r--r--src/shared/acl-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/acl-util.c b/src/shared/acl-util.c
index 36dc824128..36b3f0c16a 100644
--- a/src/shared/acl-util.c
+++ b/src/shared/acl-util.c
@@ -301,7 +301,7 @@ static int acl_entry_equal(acl_entry_t a, acl_entry_t b) {
/* can have only one of those */
return true;
case ACL_USER: {
- _cleanup_(acl_free_uid_tpp) uid_t *uid_a, *uid_b;
+ _cleanup_(acl_free_uid_tpp) uid_t *uid_a = NULL, *uid_b = NULL;
uid_a = acl_get_qualifier(a);
if (!uid_a)
@@ -314,7 +314,7 @@ static int acl_entry_equal(acl_entry_t a, acl_entry_t b) {
return *uid_a == *uid_b;
}
case ACL_GROUP: {
- _cleanup_(acl_free_gid_tpp) gid_t *gid_a, *gid_b;
+ _cleanup_(acl_free_gid_tpp) gid_t *gid_a = NULL, *gid_b = NULL;
gid_a = acl_get_qualifier(a);
if (!gid_a)