Don't use tm_zone for %Z: a strictly conforming ISO C application won't

initialize it.  Addresses PR standards/21722 from Richard Earnshaw.
This commit is contained in:
kleink 2004-05-11 09:32:02 +00:00
parent ab12386beb
commit 4c5383c22f
1 changed files with 6 additions and 2 deletions

View File

@ -1,11 +1,11 @@
/* $NetBSD: strftime.c,v 1.14 2002/10/02 06:56:24 itojun Exp $ */ /* $NetBSD: strftime.c,v 1.15 2004/05/11 09:32:02 kleink Exp $ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
#if 0 #if 0
static char elsieid[] = "@(#)strftime.c 7.64"; static char elsieid[] = "@(#)strftime.c 7.64";
#else #else
__RCSID("$NetBSD: strftime.c,v 1.14 2002/10/02 06:56:24 itojun Exp $"); __RCSID("$NetBSD: strftime.c,v 1.15 2004/05/11 09:32:02 kleink Exp $");
#endif #endif
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
@ -18,6 +18,10 @@ __RCSID("$NetBSD: strftime.c,v 1.14 2002/10/02 06:56:24 itojun Exp $");
#include "private.h" #include "private.h"
#ifdef _LIBC
#undef TM_ZONE
#endif
/* /*
** Copyright (c) 1989, 1993 ** Copyright (c) 1989, 1993
** The Regents of the University of California. All rights reserved. ** The Regents of the University of California. All rights reserved.