mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-29 16:52:45 +00:00
libsepol: initialize a local variable once
Function optimize_cond_av_list() initializes its local variable pcov_cur twice. Remove the first initialization. This issue has been found using clang's static analyzer: https://282-118970575-gh.circle-artifacts.com/0/output-scan-build/2019-06-24-210510-6101-1/report-c64da3.html#EndPath Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
2a1766f443
commit
7eef9386c2
@ -247,7 +247,7 @@ static void optimize_cond_av_list(cond_av_list_t **cond, cond_av_list_t **del,
|
||||
{
|
||||
cond_av_list_t **listp = cond;
|
||||
cond_av_list_t *pcov = NULL;
|
||||
cond_av_list_t **pcov_cur = &pcov;
|
||||
cond_av_list_t **pcov_cur;
|
||||
|
||||
/*
|
||||
* Separate out all "potentially covering" rules (src or tgt is an attr)
|
||||
|
Loading…
Reference in New Issue
Block a user