Commit 6608e856 authored by Tristan Matthews's avatar Tristan Matthews

hds: fix redundant NULL check (cid #1224540)

current_element is checked earlier and the loop continues if it's NULL.
parent 6b2fcb1c
...@@ -1262,8 +1262,7 @@ static int parse_Manifest( stream_t *s ) ...@@ -1262,8 +1262,7 @@ static int parse_Manifest( stream_t *s )
} }
if( ! strcmp( current_element, "id" ) ) if( ! strcmp( current_element, "id" ) )
{ {
if( current_element && if( ! strcmp( element_stack[current_element_idx-1], "manifest" ) )
! strcmp( element_stack[current_element_idx-1], "manifest" ) )
{ {
if( !( media_id = strdup( node ) ) ) if( !( media_id = strdup( node ) ) )
return VLC_ENOMEM; return VLC_ENOMEM;
......
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