sfeed

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

commit ec7a6e018c7bddd3645f770d0350311653212963
parent 5f541922afef40e674ea673c54d4416bab619fa2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  3 Apr 2016 13:17:43 +0200

just initialize to zero, no need for memset

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

diff --git a/sfeed.c b/sfeed.c @@ -427,7 +427,7 @@ parsetime(const char *s, time_t *tp) { STRP("December"), }, }; const char *end = NULL; - int va[6], i, j, v, vi; + int va[6] = { 0 }, i, j, v, vi; size_t m; for (; *s && isspace((int)*s); s++) @@ -435,7 +435,6 @@ parsetime(const char *s, time_t *tp) if (!isdigit((int)*s) && !isalpha((int)*s)) return -1; - memset(&va, 0, sizeof(va)); if (isdigit((int)*s)) { /* format "%Y-%m-%d %H:%M:%S" or "%Y-%m-%dT%H:%M:%S" */ vi = 0;