Commit bfcb8e3c authored by Filip Roséen's avatar Filip Roséen Committed by Hugo Beauzée-Luyssen

demux/playlist/podcast: fix usage of wrong variable in if-condition

The relevant if-statement is meant to abort parsing if strdup fails,
and should therfore check the value of "psz_elname" (as node is always
not-NULL on the line in question).
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 83a86030
......@@ -114,7 +114,7 @@ static int Demux( demux_t *p_demux )
{
free( psz_elname );
psz_elname = strdup( node );
if( unlikely(!node) )
if( unlikely(!psz_elname) )
goto error;
if( !strcmp( node, "item" ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment