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

git version control git at videolan.org
Sat Aug 29 15:26:24 CEST 2009


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

Assert against use of unitialized variable

(cherry picked from commit 4a7cf6a7b8cdc980ec76ac902259c88f151efb46)

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

 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 72759a8..a72a4c5 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