commit f89eee0aba27d49665c47d62bec7dd631c8167c2
parent 1b273487116c4af93474ff615d2624c823a6e364
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Mon, 24 Nov 2014 01:09:52 +0100
RSSyl: fix crash introduced by previous commit
Diffstat:
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
@@ -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] == '/' ? "" : "/"),