Fix uninitialized variable in error path if getseuserbyname() fails. --- libselinux/utils/getdefaultcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: trunk/libselinux/utils/getdefaultcon.c =================================================================== --- trunk.orig/libselinux/utils/getdefaultcon.c +++ trunk/libselinux/utils/getdefaultcon.c @@ -57,7 +57,7 @@ int main(int argc, char **argv) } else cur_context = argv[optind + 1]; - if (getseuserbyname(user, &seuser, &dlevel)==0) { + if ((ret = getseuserbyname(user, &seuser, &dlevel)) == 0) { if (! level) level=dlevel; if (role != NULL && role[0]) ret=get_default_context_with_rolelevel(seuser, role, level,cur_context,&usercon); -- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.