From 414b896c2de449718169fab200b39e0851c2742a Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 13 May 2020 19:27:14 +0200 Subject: sfeed_gopher: if a gopher url cannot be parsed then show it anyway as a "URL:" This should never be able to happen though in practise because sfeed parses the uri aswell. --- sfeed_gopher.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sfeed_gopher.c b/sfeed_gopher.c index 93e2e61..74c0a71 100644 --- a/sfeed_gopher.c +++ b/sfeed_gopher.c @@ -72,9 +72,8 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f) if (fields[FieldLink][0]) { itemtype = 'h'; - if (!strncmp(fields[FieldLink], "gopher://", 9)) { - if (parseuri(fields[FieldLink], &u, 0) == -1) - continue; + if (!strncmp(fields[FieldLink], "gopher://", 9) && + parseuri(fields[FieldLink], &u, 0) != -1) { itemhost = u.host; itemport = u.port[0] ? u.port : "70"; itemtype = '1'; -- cgit v1.2.3