1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 07:25:07 +00:00

Correct error-handling in touch(1)

This commit is contained in:
FRIGN 2015-02-19 18:56:59 +01:00
parent b00a00703f
commit 14b1db88bf

View File

@ -86,7 +86,7 @@ parsetime(char *str, time_t current)
case 20:
/* only Zulu-timezone supported */
if (str[19] != 'Z')
goto default;
eprintf("Invalid time zone\n");
format = "%Y-%m-%dT%H:%M:%S%Z";
break;
default: