RSSyl: fix crash introduced by previous commit
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 24 Nov 2014 00:09:52 +0000 (01:09 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 24 Nov 2014 00:09:52 +0000 (01:09 +0100)
src/plugins/rssyl/libfeed/parser_atom10.c

index 9215e91..f1ba9b3 100644 (file)
@@ -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] == '/' ? "" : "/"),