Fix usage of uninitialized variable.

Bug-Debian: https://bugs.debian.org/612599
Forwarded: no
Last-Update: 2020-03-01

Gbp-Pq: Name getfacl-fix-uninitialized-variable.patch
This commit is contained in:
Vasily Gurevich 2022-05-17 11:21:39 +08:00 committed by openKylinBot
parent 912e2d1db3
commit 6230c328f2
1 changed files with 2 additions and 0 deletions

View File

@ -380,6 +380,8 @@ int do_show(FILE *stream, const char *path_p, const struct stat *st,
show_line(stream, NULL, NULL, NULL, NULL,
&dacl_names, dacl, &dacl_ent, dacl_mask);
continue;
} else if (!dacl && !acl) {
return -1;
} else {
if (acl_tag == ACL_USER || acl_tag == ACL_GROUP) {
int id_cmp = 0;