X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fplugins%2Frssyl%2Flibfeed%2Fparser.c;h=64392456a421ce4dbd6d7c1eb9662e5123e53d99;hp=1ebc412025d7805abc51972a0be936158b58946a;hb=a52401526d1d7d9257623a5dac44ffb378371303;hpb=7b80f1f639341f9711d9b28b45de2939f1b55728 diff --git a/src/plugins/rssyl/libfeed/parser.c b/src/plugins/rssyl/libfeed/parser.c index 1ebc41202..64392456a 100644 --- a/src/plugins/rssyl/libfeed/parser.c +++ b/src/plugins/rssyl/libfeed/parser.c @@ -17,6 +17,10 @@ * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include #include @@ -30,6 +34,15 @@ #include "parser.h" +enum { + FEED_TYPE_NONE, + FEED_TYPE_RDF, + FEED_TYPE_RSS_20, + FEED_TYPE_ATOM_03, + FEED_TYPE_ATOM_10, + FEED_TYPE_OPML +} FeedTypes; + static void _handler_set(XML_Parser parser, guint type) { if( parser == NULL ) @@ -164,7 +177,7 @@ gchar *feed_parser_get_attribute_value(const gchar **attr, const gchar *name) { guint i; - if( attr == NULL && name == NULL ) + if( attr == NULL || name == NULL ) return NULL; for( i = 0; attr[i] != NULL && attr[i+1] != NULL; i += 2 ) {