sfeed_curses

[fork] sfeed (atom feed) reader
Log | Files | Refs | README | LICENSE

commit ac6ef3a1a02a71fbcaf6d80f22e6eb90fceedd83
parent c35879a5e2f2171fb55c25b102f818876c122b4f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 17 Jul 2020 14:12:13 +0200

linetoitem: whoops, zero link, fixes freeing a bogus pointer

Diffstat:
Msfeed_curses.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -1006,6 +1006,8 @@ linetoitem(char *line, struct item *item) memcpy(item->fields, fields, sizeof(fields)); if (urlfile) item->link = estrdup(fields[FieldLink]); + else + item->link = NULL; parsedtime = 0; if (!strtotime(fields[FieldUnixTimestamp], &parsedtime)) {