Fix "seq_base could be used unitialized" warning. We should probably enable
authorEvan Huus <eapache@gmail.com>
Sun, 8 Sep 2013 15:05:08 +0000 (15:05 -0000)
committerEvan Huus <eapache@gmail.com>
Sun, 8 Sep 2013 15:05:08 +0000 (15:05 -0000)
-Werror for the qt code...

svn path=/trunk/; revision=51839

ui/qt/tcp_stream_dialog.cpp

index 3aeb51060f5e378449b0f22afbca48393cb547ac..dbee330d051ab477579eaedce04d6355939c143a 100644 (file)
@@ -434,7 +434,7 @@ void TCPStreamDialog::initializeRoundTripTime()
     sp->graph(0)->setLineStyle(QCPGraph::lsLine);
 
     QVector<double> seq_no, rtt;
-    guint32 seq_base;
+    guint32 seq_base = 0;
     struct unack *unack = NULL, *u;
     for (struct segment *seg = graph_.segments; seg != NULL; seg = seg->next) {
         if (seg == graph_.segments) {