[vlc-commits] commit: var_InheritString returns NULL, not "" ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sun Oct 10 15:57:48 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 10 16:57:23 2010 +0300| [4dc568d555e8498977d661eb688d37702c5f8a3b] | committer: Rémi Denis-Courmont
var_InheritString returns NULL, not ""
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4dc568d555e8498977d661eb688d37702c5f8a3b
---
modules/access/cdda.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/modules/access/cdda.c b/modules/access/cdda.c
index 1d6fe3c..4cbdc70 100644
--- a/modules/access/cdda.c
+++ b/modules/access/cdda.c
@@ -145,11 +145,8 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
psz_name = var_InheritString( p_this, "cd-audio" );
- if( !psz_name || !*psz_name )
- {
- free( psz_name );
+ if( !psz_name )
return VLC_EGENERIC;
- }
}
else psz_name = ToLocaleDup( p_access->psz_filepath );
More information about the vlc-commits
mailing list