summaryrefslogtreecommitdiff
path: root/sfeed_web.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-12-24 13:05:47 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-12-24 13:05:47 +0100
commit1dff8155ac38dc37efab4b023f220926e5410e05 (patch)
treeab44dd9826ad8fca8d286f0325054a2fc9a7d715 /sfeed_web.c
parentb232db436b7b9343c336ef941c47cf8b107d1f7e (diff)
sfeed_web: print relative url now directly if no base url specified
Diffstat (limited to 'sfeed_web.c')
-rw-r--r--sfeed_web.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfeed_web.c b/sfeed_web.c
index 525bd84..a3ced63 100644
--- a/sfeed_web.c
+++ b/sfeed_web.c
@@ -46,6 +46,8 @@ xmltagstartparsed(XMLParser *p, const char *tag, size_t taglen, int isshort)
if (absuri(abslink, sizeof(abslink), feedlink, basehref) != -1)
fputs(abslink, stdout);
+ else
+ fputs(feedlink, stdout);
fputc('\t', stdout);
printfeedtype(feedtype, stdout);
putchar('\n');