diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-01 20:35:15 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-01 20:35:15 +0100 |
commit | 21bd0ae3aabcfb7ed47ce19e9825f8cf110afafe (patch) | |
tree | 61bdc02242982bc4a664f0e26a50ecd36f158aa3 | |
parent | f726178a4c61037da62f7dfd0c20b23a3675d6ac (diff) |
parsetime: no need to check `tp`. it must be set
-rw-r--r-- | sfeed.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -648,9 +648,9 @@ parsetime(const char *s, long long *tp) va[5] < 0 || va[5] > 60) /* allow leap second */ return -1; - if (tp) - *tp = datetounix(va[0] - 1900, va[1] - 1, va[2], va[3], va[4], va[5]) - - gettzoffset(s); + *tp = datetounix(va[0] - 1900, va[1] - 1, va[2], va[3], va[4], va[5]) - + gettzoffset(s); + return 0; } |