Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/mklocale zero-clear the file structures, to fixate p...
details: https://anonhg.NetBSD.org/src/rev/489b89bc9589
branches: trunk
changeset: 547057:489b89bc9589
user: tshiozak <tshiozak%NetBSD.org@localhost>
date: Mon May 12 06:05:52 2003 +0000
description:
zero-clear the file structures, to fixate paddings.
this change solves the illness pointed out by Nino Dehne in tech-userlevel
list.
diffstat:
usr.bin/mklocale/yacc.y | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r ce971ea9bebe -r 489b89bc9589 usr.bin/mklocale/yacc.y
--- a/usr.bin/mklocale/yacc.y Mon May 12 05:22:31 2003 +0000
+++ b/usr.bin/mklocale/yacc.y Mon May 12 06:05:52 2003 +0000
@@ -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 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 @@
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 @@
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 @@
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);
Home |
Main Index |
Thread Index |
Old Index