diff options
author | Karel Zak | 2014-07-17 14:47:20 +0200 |
---|---|---|
committer | Karel Zak | 2014-07-17 14:47:20 +0200 |
commit | fa936c9f9b8c7afd47a57b49eb4b0e4eb7d5036d (patch) | |
tree | 2d56b33648f04d8c20705c520b07fd218f99a721 /login-utils/sulogin.c | |
parent | sulogin: check result of the open() [coverity scan] (diff) | |
download | kernel-qcow2-util-linux-fa936c9f9b8c7afd47a57b49eb4b0e4eb7d5036d.tar.gz kernel-qcow2-util-linux-fa936c9f9b8c7afd47a57b49eb4b0e4eb7d5036d.tar.xz kernel-qcow2-util-linux-fa936c9f9b8c7afd47a57b49eb4b0e4eb7d5036d.zip |
sulogin: don't use uninitialized struct sigaction [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/sulogin.c')
-rw-r--r-- | login-utils/sulogin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index 0eb61d54e..d14e527f9 100644 --- a/login-utils/sulogin.c +++ b/login-utils/sulogin.c @@ -645,6 +645,7 @@ static char *getpasswd(struct console *con) tty.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|TOSTOP|ISIG); tc = (tcsetattr(fd, TCSAFLUSH, &tty) == 0); + sigemptyset(&sa.sa_mask); sa.sa_handler = alrm_handler; sa.sa_flags = 0; sigaction(SIGALRM, &sa, NULL); |