mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-20 03:26:53 +00:00
When using "gcc -O2 -Wall -Werror" to compile libsepol, the following error happens: services.c: In function 'constraint_expr_eval_reason': services.c:820:2: error: 'answer_list' may be used uninitialized in this function [-Werror=maybe-uninitialized] free(answer_list); ^ Indeed, because of a goto statement in constraint_expr_eval_reason function, "free(answer_list)" can be called before answer_list has been initialized. Fix this error by moving the definition of answer_list to the beginning of constraint_expr_eval_reason. Acked-by: Steve Lawrence <slawrence@tresys.com> |
||
---|---|---|
.. | ||
cil | ||
include | ||
man | ||
src | ||
tests | ||
utils | ||
.gitignore | ||
Android.mk | ||
ChangeLog | ||
COPYING | ||
Makefile | ||
VERSION |