summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_gopher.c5
1 files 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';