Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time don't print ???, requested by kre@
details: https://anonhg.NetBSD.org/src/rev/a5462651be5a
branches: trunk
changeset: 998120:a5462651be5a
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 07 22:31:54 2019 +0000
description:
don't print ???, requested by kre@
diffstat:
lib/libc/time/strftime.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r db6030024678 -r a5462651be5a lib/libc/time/strftime.c
--- a/lib/libc/time/strftime.c Sun Apr 07 22:23:40 2019 +0000
+++ b/lib/libc/time/strftime.c Sun Apr 07 22:31:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strftime.c,v 1.45 2019/04/07 14:51:14 christos Exp $ */
+/* $NetBSD: strftime.c,v 1.46 2019/04/07 22:31:54 christos Exp $ */
/* Convert a broken-down timestamp to a string. */
@@ -35,7 +35,7 @@
static char elsieid[] = "@(#)strftime.c 7.64";
static char elsieid[] = "@(#)strftime.c 8.3";
#else
-__RCSID("$NetBSD: strftime.c,v 1.45 2019/04/07 14:51:14 christos Exp $");
+__RCSID("$NetBSD: strftime.c,v 1.46 2019/04/07 22:31:54 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -550,7 +550,8 @@
tzgetname(sp, dst);
if (z == NULL)
z = tzgetname(sp, !dst);
- pt = _add(z ? z : "???", pt, ptlim);
+ if (z != NULL)
+ pt = _add(z, pt, ptlim);
errno = oerrno;
}
#endif
Home |
Main Index |
Thread Index |
Old Index