mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-16 12:21:18 +02:00
43823: remove unnecessary metafy() in stattimeprint()
This commit is contained in:
parent
7292c063e8
commit
e258e7d251
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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, ")");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue