sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 21bd0ae3aabcfb7ed47ce19e9825f8cf110afafe
parent f726178a4c61037da62f7dfd0c20b23a3675d6ac
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue,  1 Feb 2022 20:35:15 +0100

parsetime: no need to check `tp`. it must be set

Diffstat:
Msfeed.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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; }