]> git.sesse.net Git - vlc/blobdiff - modules/misc/profile_parser.c
Removes trailing spaces. Removes tabs.
[vlc] / modules / misc / profile_parser.c
index bb23a5ab516fced743d767ddfa4909fe5107d334..5eb1dfd408fd7919c6daa17b624a9cf8de17fe91 100644 (file)
@@ -22,7 +22,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 #include <vlc/vlc.h>
-#include <vlc/input.h>
+#include <vlc_stream.h>
 #include <vlc_streaming.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,8 +55,7 @@ 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 || 
+    if( xml_ReaderRead( p_reader ) != 1 ||
         xml_ReaderNodeType( p_reader ) != XML_READER_STARTELEM )
     {
         msg_Err( p_this, "invalid file (invalid root)" );