From f89eee0aba27d49665c47d62bec7dd631c8167c2 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Mon, 24 Nov 2014 01:09:52 +0100 Subject: [PATCH] RSSyl: fix crash introduced by previous commit --- src/plugins/rssyl/libfeed/parser_atom10.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/rssyl/libfeed/parser_atom10.c b/src/plugins/rssyl/libfeed/parser_atom10.c index 9215e913c..f1ba9b391 100644 --- a/src/plugins/rssyl/libfeed/parser_atom10.c +++ b/src/plugins/rssyl/libfeed/parser_atom10.c @@ -131,7 +131,8 @@ void feed_parser_atom10_end(void *data, const gchar *el) if( !strcmp(el, "entry") ) { /* Fix up URL, if it is relative */ - if (!strstr("://", ctx->curitem->url) && + if (ctx->curitem->url != NULL && + !strstr("://", ctx->curitem->url) && ctx->feed->link != NULL) { tmp = g_strconcat(ctx->feed->link, (ctx->curitem->url[0] == '/' ? "" : "/"), -- 2.25.1