From 1c44e76f57d78d2549c245210ab23f3af0e38acb Mon Sep 17 00:00:00 2001 From: mycroft Date: Sun, 11 Jun 2000 03:36:40 +0000 Subject: [PATCH] Initialize this->hits. --- usr.bin/tn3270/tools/mkhits/dohits.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/tn3270/tools/mkhits/dohits.c b/usr.bin/tn3270/tools/mkhits/dohits.c index 33b56c4bda9b..830fef14dc33 100644 --- a/usr.bin/tn3270/tools/mkhits/dohits.c +++ b/usr.bin/tn3270/tools/mkhits/dohits.c @@ -1,4 +1,4 @@ -/* $NetBSD: dohits.c,v 1.7 1998/09/06 02:54:48 lukem Exp $ */ +/* $NetBSD: dohits.c,v 1.8 2000/06/11 03:36:40 mycroft Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)dohits.c 4.2 (Berkeley) 4/26/91"; #else -__RCSID("$NetBSD: dohits.c,v 1.7 1998/09/06 02:54:48 lukem Exp $"); +__RCSID("$NetBSD: dohits.c,v 1.8 2000/06/11 03:36:40 mycroft Exp $"); #endif #endif /* not lint */ @@ -114,6 +114,7 @@ int value; item = &firstentry(second); this = (struct thing *) malloc(sizeof *this); + this->hits = 0; this->next = *item; *item = this; this->value = value;