From 709be17708bf62399b3e1a3104e8489cef01e8a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 10 Dec 2009 18:46:22 +0200 Subject: [PATCH] Use ...NonEmpty... for --open --- src/libvlc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.39.5