From: RĂ©mi Denis-Courmont Date: Thu, 10 Dec 2009 16:46:22 +0000 (+0200) Subject: Use ...NonEmpty... for --open X-Git-Tag: 1.1.0-ff~2040 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=709be17708bf62399b3e1a3104e8489cef01e8a3;p=vlc Use ...NonEmpty... for --open --- diff --git a/src/libvlc.c b/src/libvlc.c index 07937d6c99..3cef1bfa00 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -1008,8 +1008,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, /* * Get --open argument */ - psz_val = var_CreateGetString( p_libvlc, "open" ); - if ( psz_val != NULL && *psz_val ) + psz_val = var_CreateGetNonEmptyString( p_libvlc, "open" ); + if ( psz_val != NULL ) { playlist_t *p_playlist = pl_Hold( p_libvlc ); playlist_AddExt( p_playlist, psz_val, NULL, PLAYLIST_INSERT, 0,