From: Jean-Baptiste Kempf Date: Sat, 2 Aug 2008 00:26:22 +0000 (-0700) Subject: Fix potential segfault. X-Git-Tag: 0.9.0-test3~20 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=33e8266df2b1de424d15506d22d827b297ea65a6 Fix potential segfault. --- diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp index 143e9df7a5..3a13ca9e67 100644 --- a/modules/gui/qt4/dialogs/open.cpp +++ b/modules/gui/qt4/dialogs/open.cpp @@ -337,6 +337,8 @@ void OpenDialog::stream( bool b_transcode_only ) { mrl = ui.advancedLineInput->text(); toggleVisible(); + QStringList listMRL = SeparateEntries( mrl ); + if( listMRL.size() > 0 ) THEDP->streamingDialog( this, SeparateEntries( mrl )[0], b_transcode_only ); }