Fix an impossible crash to shut Coverity up.
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 11 Sep 2016 08:15:41 +0000 (10:15 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sun, 11 Sep 2016 08:15:41 +0000 (10:15 +0200)
src/plugins/rssyl/rssyl_update_comments.c

index 126847bd1fe77d0b59df07245aafee5ff6d00212..581d37902384903c7076cc71fad1863990543a48 100644 (file)
@@ -133,7 +133,9 @@ void rssyl_update_comments(RFolderItem *ritem)
                                }
                        }
 
-                       g_free(feedctx->path);
+                       if (feedctx != NULL) {
+                               g_free(feedctx->path);
+                       }
                        feed_item_free(fi);
                        g_free(fname);
                }