X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fmisc%2Fprofile_parser.c;h=8a548406ab442b4aa6a50f5e7a2eee67c4494ae4;hb=19f542a35b43fadc821547fea49f7cbd90ad0b69;hp=11e153c8c516dffb778520a13eaf34f819ffb7c6;hpb=2dcb3add64d9fe0dc94490ccf3effcc7ec7dde99;p=vlc diff --git a/modules/misc/profile_parser.c b/modules/misc/profile_parser.c index 11e153c8c5..8a548406ab 100644 --- a/modules/misc/profile_parser.c +++ b/modules/misc/profile_parser.c @@ -22,8 +22,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #include +#include #include -#include "vlc_stream.h" #include "vlc_xml.h" /***************************************************************************** @@ -43,8 +43,8 @@ static int Open( vlc_object_t *p_this ) xml_t *p_xml; xml_reader_t *p_reader; int i_ret; - char *psz_elname; - + char *psz_elname = NULL; + /* Open the profile and get a XML reader from it */ if( !p_stream ) { @@ -55,7 +55,6 @@ static int Open( vlc_object_t *p_this ) if( !p_xml ) return VLC_EGENERIC; p_reader = xml_ReaderCreate( p_xml, p_stream ); - if( xml_ReaderRead( p_reader ) != 1 || xml_ReaderNodeType( p_reader ) != XML_READER_STARTELEM ) {