From efc77aa209904c789c1ac8cc59396a134ab1295a Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Fri, 13 Apr 2018 22:34:24 +0200 Subject: [PATCH] libselinux: remove unused variable usercon In getconlist.c, main() does not use usercon. Remove this variable. Signed-off-by: Nicolas Iooss --- libselinux/utils/getconlist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libselinux/utils/getconlist.c b/libselinux/utils/getconlist.c index abfe2c74..5ac0ca85 100644 --- a/libselinux/utils/getconlist.c +++ b/libselinux/utils/getconlist.c @@ -19,7 +19,7 @@ static __attribute__ ((__noreturn__)) void usage(const char *name, const char *d int main(int argc, char **argv) { - char **list, *usercon = NULL, *cur_context = NULL; + char **list, *cur_context = NULL; char *user = NULL, *level = NULL; int ret, i, opt; @@ -69,7 +69,6 @@ int main(int argc, char **argv) freeconary(list); } - free(usercon); free(level); return 0;