]> git.sesse.net Git - vlc/commitdiff
hds: fix redundant NULL check (cid #1224540)
authorTristan Matthews <le.businessman@gmail.com>
Fri, 1 Aug 2014 04:22:39 +0000 (00:22 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Fri, 1 Aug 2014 04:22:39 +0000 (00:22 -0400)
current_element is checked earlier and the loop continues if it's NULL.

modules/stream_filter/hds/hds.c

index 5ec1a37e5c8f759411bc49cb4694d6dff3848f96..feb0b43f26f2acab9c6d4fd92be24eeb1fe3e1cf 100644 (file)
@@ -1262,8 +1262,7 @@ static int parse_Manifest( stream_t *s )
             }
             if( ! strcmp( current_element, "id" ) )
             {
-                if( current_element &&
-                    ! strcmp( element_stack[current_element_idx-1], "manifest" ) )
+                if( ! strcmp( element_stack[current_element_idx-1], "manifest" ) )
                 {
                     if( !( media_id = strdup( node ) ) )
                         return VLC_ENOMEM;