[vlc-devel] commit: Assert against use of unitialized variable ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Aug 13 22:36:36 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 13 23:05:05 2009 +0300| [4a7cf6a7b8cdc980ec76ac902259c88f151efb46] | committer: Rémi Denis-Courmont 

Assert against use of unitialized variable

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

 modules/gui/qt4/dialogs/sout.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/dialogs/sout.cpp b/modules/gui/qt4/dialogs/sout.cpp
index 216a35d..ee603e5 100644
--- a/modules/gui/qt4/dialogs/sout.cpp
+++ b/modules/gui/qt4/dialogs/sout.cpp
@@ -34,6 +34,7 @@
 #include <QString>
 #include <QFileDialog>
 #include <QToolButton>
+#include <assert.h>
 
 SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString& inputMRL )
            : QVLCDialog( parent,  _p_intf )
@@ -182,6 +183,9 @@ void SoutDialog::addDest( )
                 index = ui.destTab->addTab( idb, "Icecast" );
                 CONNECT( idb, mrlUpdated(), this, updateMRL() );
             }
+            break;
+        default:
+            assert(0);
     }
 
     ui.destTab->setCurrentIndex( index );




More information about the vlc-devel mailing list