From 810d38926974d8b7df316e34600d404f42d5e100 Mon Sep 17 00:00:00 2001 From: Arthur David Olson Date: Thu, 25 Aug 1994 13:53:10 -0400 Subject: [PATCH] tweaks SCCS-file: strftime.c SCCS-SID: 7.30 --- strftime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/strftime.c b/strftime.c index cf40613..9457f60 100644 --- a/strftime.c +++ b/strftime.c @@ -52,7 +52,9 @@ struct lc_time_T { const char * date_fmt; }; +#ifdef LOCALE_HOME static struct lc_time_T localebuf; +#endif /* defined LOCALE_HOME */ static const struct lc_time_T C_time_locale = { { @@ -115,9 +117,11 @@ const size_t maxsize; const char * const format; const struct tm * t; { - char * p; + char * p; +#ifdef LOCALE_HOME localebuf.mon[0] = 0; +#endif /* defined LOCALE_HOME */ p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize); if (p == s + maxsize) return 0;