[vlc-commits] sgimb: remove dummy test
    Rémi Duraffort 
    git at videolan.org
       
    Fri Aug  9 10:24:37 CEST 2013
    
    
  
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Aug  8 19:12:38 2013 +0200| [c4595ee6467a651af38a70243471593258e72e3a] | committer: Jean-Baptiste Kempf
sgimb: remove dummy test
This test is always true. Moreover, strrchr does handle empty strings.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c4595ee6467a651af38a70243471593258e72e3a
---
 modules/demux/playlist/sgimb.c |    2 --
 1 file changed, 2 deletions(-)
diff --git a/modules/demux/playlist/sgimb.c b/modules/demux/playlist/sgimb.c
index 0bbb55a..7aaa886 100644
--- a/modules/demux/playlist/sgimb.c
+++ b/modules/demux/playlist/sgimb.c
@@ -216,8 +216,6 @@ static int ParseLine ( demux_t *p_demux, char *psz_line )
     else if( !strncasecmp( psz_bol, "Stream=\"", sizeof("Stream=\"") - 1 ) )
     {
         psz_bol += sizeof("Stream=\"") - 1;
-        if ( !psz_bol )
-            return 0;
         char* psz_tmp = strrchr( psz_bol, '"' );
         if( !psz_tmp )
             return 0;
    
    
More information about the vlc-commits
mailing list