[vlc-commits] Xspf: fix crash

Jean-Baptiste Kempf git at videolan.org
Wed Jan 4 19:38:42 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jan  4 19:37:59 2012 +0100| [4c21c6506d93a9cf92992bf302a53ad77ddf7829] | committer: Jean-Baptiste Kempf

Xspf: fix crash

See http://forum.videolan.org/viewtopic.php?f=12&t=96883

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c21c6506d93a9cf92992bf302a53ad77ddf7829
---

 modules/demux/playlist/xspf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index c1ebf34..6edee56 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -221,7 +221,7 @@ static bool parse_playlist_node COMPLEX_INTERFACE
         /* attribute: xmlns */
         else if (!strcmp(name, "xmlns") || !strcmp(name, "xmlns:vlc"))
             ;
-        else if (!strcmp(name, "xml:base"))
+        else if (!strcmp(name, "xml:base") && psz_value)
         {
             free(p_demux->p_sys->psz_base);
             p_demux->p_sys->psz_base = strdup(psz_value);



More information about the vlc-commits mailing list