[vlc-commits] oldrc: fix segfault

Rafaël Carré git at videolan.org
Tue Jan 1 18:05:07 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Jan  1 18:04:54 2013 +0100| [10d7463d9b9f664f7ccffd77da583db4304653d0] | committer: Rafaël Carré

oldrc: fix segfault

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10d7463d9b9f664f7ccffd77da583db4304653d0
---

 modules/control/rc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/control/rc.c b/modules/control/rc.c
index cfffc80..85cda6f 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -2069,7 +2069,7 @@ static input_item_t *parse_MRL( const char *mrl )
 
         if( !psz_item_mrl )
         {
-            if( strstr( psz_item_mrl, "://" ) != NULL )
+            if( strstr( psz_item, "://" ) != NULL )
                 psz_item_mrl = strdup( psz_item );
             else
                 psz_item_mrl = vlc_path2uri( psz_item, NULL );



More information about the vlc-commits mailing list