commit 175213a5326a1f14b21f8b6aee89d55f086eca59 parent 1316680290aea575cbc04e664b51457b82aff506 Author: Andrej Kacian <andrej@kacian.sk> Date: Sun, 29 Jun 2014 21:26:48 +0200 RSSyl: make sure we do not operate with NULL text in libfeed parsers' end-handlers. Diffstat:
| M | src/plugins/rssyl/libfeed/parser_atom10.c | | | 2 | ++ |
| M | src/plugins/rssyl/libfeed/parser_rdf.c | | | 2 | ++ |
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/plugins/rssyl/libfeed/parser_atom10.c b/src/plugins/rssyl/libfeed/parser_atom10.c @@ -93,6 +93,8 @@ void feed_parser_atom10_end(void *data, const gchar *el) if( ctx->str != NULL ) text = ctx->str->str; + else + text = ""; ctx->depth--; diff --git a/src/plugins/rssyl/libfeed/parser_rdf.c b/src/plugins/rssyl/libfeed/parser_rdf.c @@ -56,6 +56,8 @@ void feed_parser_rdf_end(void *data, const gchar *el) if( ctx->str != NULL ) text = ctx->str->str; + else + text = ""; ctx->depth--;