From 4dded813f179fa246a08c3eb8da070760c0a8ed5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 4 Mar 2008 22:10:54 +0200 Subject: [PATCH] Remove useless NULLity checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- src/input/input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input/input.c b/src/input/input.c index a8b701c41e..6490e6d008 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -2201,7 +2201,7 @@ static int InputSourceInit( input_thread_t *p_input, { psz_demux = psz_forced_demux; } - else if( !psz_demux || *psz_demux == '\0' ) + else if( *psz_demux == '\0' ) { /* special hack for forcing a demuxer with --demux=module * (and do nothing with a list) */ @@ -2227,9 +2227,9 @@ static int InputSourceInit( input_thread_t *p_input, else { /* Preparsing is only for file:// */ - if( psz_demux && *psz_demux ) + if( *psz_demux ) goto error; - if( !psz_access || !*psz_access ) /* path without scheme:// */ + if( !*psz_access ) /* path without scheme:// */ psz_access = "file"; if( strcmp( psz_access, "file" ) ) goto error; -- 2.39.2