From f664dc53f384fdb25acd9e7797b4ea0505937807 Mon Sep 17 00:00:00 2001 From: tshiozak Date: Mon, 12 May 2003 06:05:52 +0000 Subject: [PATCH] zero-clear the file structures, to fixate paddings. this change solves the illness pointed out by Nino Dehne in tech-userlevel list. --- usr.bin/mklocale/yacc.y | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y index 2ccfd05800b9..6b52c678895f 100644 --- a/usr.bin/mklocale/yacc.y +++ b/usr.bin/mklocale/yacc.y @@ -1,4 +1,4 @@ -/* $NetBSD: yacc.y,v 1.19 2003/04/21 08:41:28 bjh21 Exp $ */ +/* $NetBSD: yacc.y,v 1.20 2003/05/12 06:05:52 tshiozak Exp $ */ %{ /*- @@ -48,7 +48,7 @@ static char sccsid[] = "@(#)yacc.y 8.1 (Berkeley) 6/6/93"; static char rcsid[] = "$FreeBSD$"; #else #ifdef __RCSID -__RCSID("$NetBSD: yacc.y,v 1.19 2003/04/21 08:41:28 bjh21 Exp $"); +__RCSID("$NetBSD: yacc.y,v 1.20 2003/05/12 06:05:52 tshiozak Exp $"); #endif #endif #endif /* not lint */ @@ -688,6 +688,7 @@ dump_tables() for (list = types.root, n = 0; list != NULL; list = list->next, n++) { _FileRuneEntry re; + memset(&re, 0, sizeof(re)); re.fre_min = htonl(list->min); re.fre_max = htonl(list->max); re.fre_map = htonl(list->map); @@ -701,6 +702,7 @@ dump_tables() for (list = maplower.root, n = 0; list != NULL; list = list->next, n++) { _FileRuneEntry re; + memset(&re, 0, sizeof(re)); re.fre_min = htonl(list->min); re.fre_max = htonl(list->max); re.fre_map = htonl(list->map); @@ -714,6 +716,7 @@ dump_tables() for (list = mapupper.root, n = 0; list != NULL; list = list->next, n++) { _FileRuneEntry re; + memset(&re, 0, sizeof(re)); re.fre_min = htonl(list->min); re.fre_max = htonl(list->max); re.fre_map = htonl(list->map);