[systemd-commits] src/shared
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Tue Feb 24 11:42:44 PST 2015
src/shared/acl-util.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 76dcbc4992e895a377aad26f8c4a0dcd71002396
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Feb 24 20:40:07 2015 +0100
acl-util: avoid freeing uninitialized pointer
CID#1271344/1271345
diff --git a/src/shared/acl-util.c b/src/shared/acl-util.c
index 36dc824..36b3f0c 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)
More information about the systemd-commits
mailing list