Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/tn3270/tools/mkhits Initialize this->hits.



details:   https://anonhg.NetBSD.org/src/rev/f8fe1f845af3
branches:  trunk
changeset: 487671:f8fe1f845af3
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sun Jun 11 03:36:40 2000 +0000

description:
Initialize this->hits.

diffstat:

 usr.bin/tn3270/tools/mkhits/dohits.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r e3eea14770ef -r f8fe1f845af3 usr.bin/tn3270/tools/mkhits/dohits.c
--- a/usr.bin/tn3270/tools/mkhits/dohits.c      Sun Jun 11 03:35:38 2000 +0000
+++ b/usr.bin/tn3270/tools/mkhits/dohits.c      Sun Jun 11 03:36:40 2000 +0000
@@ -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 @@
 
     item = &firstentry(second);
     this = (struct thing *) malloc(sizeof *this);
+    this->hits = 0;
     this->next = *item;
     *item = this;
     this->value = value;



Home | Main Index | Thread Index | Old Index