mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-03 20:51:07 +01:00
users/14902: another go at strftime
This commit is contained in:
parent
d5a0f7623c
commit
31123a1184
2 changed files with 5 additions and 3 deletions
|
|
@ -113,7 +113,7 @@ bin_strftime(char *nam, char **argv, Options ops, UNUSED(int func))
|
|||
|
||||
errno = 0;
|
||||
secs = (time_t)strtoul(argv[1], &endptr, 10);
|
||||
if (secs == (time_t)ULONG_MAX && errno != 0) {
|
||||
if (errno != 0) {
|
||||
zwarnnam(nam, "%s: %e", argv[1], errno);
|
||||
return 1;
|
||||
} else if (*endptr != '\0') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue