mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-16 19:24:35 +00:00
b41468cd9d
David Binderman wrote: > Hello there, > > ./cil/src/cil_tree.c:1279:36: warning: duplicated 'if' condition [-Wduplicated-cond] > > Source code is > > if (filecon->context_str != NULL) { > cil_log(CIL_INFO, " %s", filecon->context_str); > } else if (filecon->context != NULL) { > cil_tree_print_context(filecon->context); > } else if (filecon->context_str != NULL) { > cil_log(CIL_INFO, " %s", filecon->context_str); > } > > Two mentions of filecon->context_str. Suggest code rework. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Steve Lawrence <slawrence@tresys.com> |
||
---|---|---|
.. | ||
cil | ||
include | ||
man | ||
src | ||
tests | ||
utils | ||
.gitignore | ||
Android.mk | ||
ChangeLog | ||
COPYING | ||
Makefile | ||
VERSION |