vlc | branch: master | Tristan Matthews <le.business...@gmail.com> | Fri Aug 1 00:22:39 2014 -0400| [6608e8564421a570a039a9f60709707203c24620] | committer: Tristan Matthews
hds: fix redundant NULL check (cid #1224540) current_element is checked earlier and the loop continues if it's NULL. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6608e8564421a570a039a9f60709707203c24620 --- modules/stream_filter/hds/hds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c index 5ec1a37..feb0b43 100644 --- a/modules/stream_filter/hds/hds.c +++ b/modules/stream_filter/hds/hds.c @@ -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; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits