summaryrefslogtreecommitdiff
path: root/sessreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sessreg.c')
-rw-r--r--sessreg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sessreg.c b/sessreg.c
index 6b04ba0..77d36c8 100644
--- a/sessreg.c
+++ b/sessreg.c
@@ -359,6 +359,7 @@ main (int argc, char **argv)
static void
set_utmp (struct utmp *u, char *line, char *user, char *host, Time_t date, int addp)
{
+ bzero (u, sizeof (*u));
if (line)
(void) strncpy (u->ut_line, line, sizeof (u->ut_line));
else