From e258e7d251b7403a6d77b23e6927b659bf9c2c37 Mon Sep 17 00:00:00 2001 From: Ivan Tkachenko Date: Thu, 15 Nov 2018 10:59:09 +0900 Subject: 43823: remove unnecessary metafy() in stattimeprint() --- ChangeLog | 5 +++++ Src/Modules/stat.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d07a9dff3..9a6a1540e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-11-15 Jun-ichi Takimoto + + * Ivan Tkachenko: 43823: Src/Modules/stat.c: remove unnecessary + metafy() in stattimeprint() + 2018-11-14 Peter Stephenson * 43620: Doc/Zsh/expn.yo: more care documenting command diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c index 50a6a9bb2..7c736072b 100644 --- a/Src/Modules/stat.c +++ b/Src/Modules/stat.c @@ -198,10 +198,8 @@ stattimeprint(time_t tim, long nsecs, char *outbuf, int flags) if (flags & STF_STRING) { char *oend = outbuf + strlen(outbuf); /* Where the heck does "40" come from? */ - int len = ztrftime(oend, 40, timefmt, (flags & STF_GMT) ? gmtime(&tim) : + ztrftime(oend, 40, timefmt, (flags & STF_GMT) ? gmtime(&tim) : localtime(&tim), nsecs); - if (len > 0) - metafy(oend, len, META_NOALLOC); if (flags & STF_RAW) strcat(oend, ")"); } -- cgit 1.4.1