-
-
usr/src/common/acl/acl_common.c (Diff revision 1) Or you could move
3 + list->numusers + list->numgroups
here, we are still protected by having result == NULL.
8463 common/acl: 'resultcount' may be used uninitialized in this function
Review Request #620 — Created July 5, 2017 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
8463 | |
4774268... | |
Reviewers | |
general | |
/code/illumos-gate/usr/src/common/acl/acl_common.c: In function 'ace_list_to_aent': /code/illumos-gate/usr/src/common/acl/acl_common.c:1212:4: error: 'resultcount' may be used uninitialized in this function [-Werror=maybe-uninitialized] cacl_free(result, resultcount * sizeof (aclent_t)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+1 -1) |
Change Summary:
a bit better approach suggested by pmooney.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+3 -4) |