[vlc-commits] sgimb: remove dummy test
Rémi Duraffort
git at videolan.org
Fri Aug 9 10:28:58 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Aug 8 19:12:38 2013 +0200| [44fb769d66e0a1b2265b8cd137e4d58d1208b40b] | committer: Jean-Baptiste Kempf
sgimb: remove dummy test
This test is always true. Moreover, strrchr does handle empty strings.
(cherry picked from commit c4595ee6467a651af38a70243471593258e72e3a)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=44fb769d66e0a1b2265b8cd137e4d58d1208b40b
---
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