summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sessreg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sessreg.c b/sessreg.c
index 9e0354a..1c13ece 100644
--- a/sessreg.c
+++ b/sessreg.c
@@ -499,6 +499,7 @@ set_utmpx (struct utmpx *u, const char *line, const char *user,
static const char letters[] =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ memset (u, 0, sizeof (*u));
if (line)
{
if(strcmp(line, ":0") == 0)