summary refs log tree commit diff
path: root/Src
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 /Src
parent7292c063e8fe38c9212bfb47880934effc052ae1 (diff)
downloadzsh-e258e7d251b7403a6d77b23e6927b659bf9c2c37.tar.gz
zsh-e258e7d251b7403a6d77b23e6927b659bf9c2c37.tar.xz
zsh-e258e7d251b7403a6d77b23e6927b659bf9c2c37.zip
43823: remove unnecessary metafy() in stattimeprint()
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/stat.c4
1 files changed, 1 insertions, 3 deletions
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, ")");
     }