Assert against use of unitialized variable
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 13 Aug 2009 20:05:05 +0000 (23:05 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 13 Aug 2009 20:30:36 +0000 (23:30 +0300)
modules/gui/qt4/dialogs/sout.cpp

index 216a35d..ee603e5 100644 (file)
@@ -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 );