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 9215e913cdff5cd4696b21e3c77b800b605f9d97..f1ba9b39168cf25cab6e926934a8a0d84b376e7a 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( !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] == '/' ? "" : "/"),
                                                ctx->feed->link != NULL) {
                                        tmp = g_strconcat(ctx->feed->link,
                                                        (ctx->curitem->url[0] == '/' ? "" : "/"),