"gcc -O2 -Wall -Werror" fails to compile seusers_local.c: seusers_local.c: In function 'semanage_seuser_modify_local': seusers_local.c:122:6: error: 'rc' may be used uninitialized in this function [-Werror=maybe-uninitialized] It seems rc is not initialized when the call to semanage_seuser_clone fails in semanage_seuser_modify_local. --- libsemanage/src/seusers_local.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsemanage/src/seusers_local.c b/libsemanage/src/seusers_local.c index 63ab40ced88c..42c3a8b662c2 100644 --- a/libsemanage/src/seusers_local.c +++ b/libsemanage/src/seusers_local.c @@ -131,7 +131,8 @@ int semanage_seuser_modify_local(semanage_handle_t * handle, errno=EINVAL; return -1; } - if (semanage_seuser_clone(handle, data, &new) < 0) { + rc = semanage_seuser_clone(handle, data, &new); + if (rc < 0) { goto err; } -- 2.1.0 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.