Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time only need to initialize the first type.
details: https://anonhg.NetBSD.org/src/rev/6d788fd4ec12
branches: trunk
changeset: 998108:6d788fd4ec12
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 07 14:58:25 2019 +0000
description:
only need to initialize the first type.
diffstat:
lib/libc/time/localtime.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 513d9b493df3 -r 6d788fd4ec12 lib/libc/time/localtime.c
--- a/lib/libc/time/localtime.c Sun Apr 07 14:51:14 2019 +0000
+++ b/lib/libc/time/localtime.c Sun Apr 07 14:58:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: localtime.c,v 1.118 2019/04/07 14:44:51 christos Exp $ */
+/* $NetBSD: localtime.c,v 1.119 2019/04/07 14:58:25 christos Exp $ */
/* Convert timestamp from time_t to struct tm. */
@@ -12,7 +12,7 @@
#if 0
static char elsieid[] = "@(#)localtime.c 8.17";
#else
-__RCSID("$NetBSD: localtime.c,v 1.118 2019/04/07 14:44:51 christos Exp $");
+__RCSID("$NetBSD: localtime.c,v 1.119 2019/04/07 14:58:25 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -1394,7 +1394,7 @@
sp->typecnt = 1;
sp->charcnt = 0;
sp->goback = sp->goahead = false;
- sp->types[0] = sp->types[1] = 0;
+ sp->types[0] = 0;
init_ttinfo(&sp->ttis[0], 0, false, 0);
strcpy(sp->chars, gmt);
sp->defaulttype = 0;
Home |
Main Index |
Thread Index |
Old Index