/* ATOM feed detected, let's check version */
version = feed_parser_get_attribute_value(attr, "xmlns");
- if( !strcmp(version, "http://www.w3.org/2005/Atom") ||
- !strcmp(version, "https://www.w3.org/2005/Atom") )
+ if( version != NULL &&
+ (!strcmp(version, "http://www.w3.org/2005/Atom") ||
+ !strcmp(version, "https://www.w3.org/2005/Atom")) )
feedtype = FEED_TYPE_ATOM_10;
else
feedtype = FEED_TYPE_ATOM_03;