mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-13 06:17:17 +00:00
033ea27c09
In semanage_direct_set_module_info() and semanage_direct_list_all() functions, when modinfo_tmp variable gets initialized, a branch to "cleanup" label may have already been taken. This leads to this variable being possibly used uninitialized in these functions. This is reported by clang: direct_api.c:2491:41: error: variable 'modinfo_tmp' may be uninitialized when used here [-Werror,-Wconditional-uninitialized] ret = semanage_module_info_destroy(sh, modinfo_tmp); ^~~~~~~~~~~ direct_api.c:2334:2: note: variable 'modinfo_tmp' is declared here semanage_module_info_t *modinfo_tmp = NULL; ^ Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org> |
||
---|---|---|
.. | ||
example | ||
include | ||
man | ||
src | ||
tests | ||
utils | ||
.gitignore | ||
ChangeLog | ||
COPYING | ||
Makefile | ||
VERSION |