summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Tkachenko <me@ratijas.tk>2018-11-15 10:59:09 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-11-15 10:59:09 +0900
commite258e7d251b7403a6d77b23e6927b659bf9c2c37 (patch)
treec14ba0632bef99f2f8e5fdcf2e3ce17265531c94
parent7292c063e8fe38c9212bfb47880934effc052ae1 (diff)
downloadzsh-e258e7d251b7403a6d77b23e6927b659bf9c2c37.tar.gz
zsh-e258e7d251b7403a6d77b23e6927b659bf9c2c37.zip
43823: remove unnecessary metafy() in stattimeprint()
-rw-r--r--ChangeLog5
-rw-r--r--Src/Modules/stat.c4
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 <takimoto-j@kba.biglobe.ne.jp>
+
+ * Ivan Tkachenko: 43823: Src/Modules/stat.c: remove unnecessary
+ metafy() in stattimeprint()
+
2018-11-14 Peter Stephenson <p.stephenson@samsung.com>
* 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, ")");
}