summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-02-01 20:35:15 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-02-01 20:35:15 +0100
commit21bd0ae3aabcfb7ed47ce19e9825f8cf110afafe (patch)
tree61bdc02242982bc4a664f0e26a50ecd36f158aa3
parentf726178a4c61037da62f7dfd0c20b23a3675d6ac (diff)
parsetime: no need to check `tp`. it must be set
-rw-r--r--sfeed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfeed.c b/sfeed.c
index 2e9c364..6b4a423 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -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;
}