diff --git a/src/swtpm_setup/swtpm_setup.c b/src/swtpm_setup/swtpm_setup.c index 8630dcd1d..21bb5d3fc 100644 --- a/src/swtpm_setup/swtpm_setup.c +++ b/src/swtpm_setup/swtpm_setup.c @@ -177,7 +177,6 @@ int main(int argc, char *argv[]) char *dir; char *path_program; size_t length; - struct passwd *passwd = NULL; int i = 1, j; const char *userid = NULL; bool change_user = true; @@ -286,11 +285,6 @@ int main(int argc, char *argv[]) */ execv(path_program, argv); - if (passwd) { - /* should never get here */ - fprintf(stderr, "As user %s:", passwd->pw_name); - } - fprintf(stderr, "Could not execute '%s' : %s\n", path_program, strerror(errno));