summaryrefslogtreecommitdiff
path: root/sessreg.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2004-10-13 22:14:22 +0000
committerAdam Jackson <ajax@nwnk.net>2004-10-13 22:14:22 +0000
commite3025b01b3fdd32bde8120dec1b0061e1449c6e9 (patch)
treea408b1c46fd9c8765f86e3308d3bfa8b5b8b17d9 /sessreg.c
parent922a3ce29d3fe91f57fd41ea87e0e56b72ee9670 (diff)
fields. (Egmont Koblinger)
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