forked from osmocom/wireshark
Qt: add initializers (CID 1162824).
Change-Id: Ib570d3531bfdd35404b75d49dbd7dd43db4c30d9 Reviewed-on: https://code.wireshark.org/review/16310 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
4b484a6d1a
commit
50d1d59213
|
@ -1553,6 +1553,8 @@ static GtkWidget *control_panel_create_graph_type_group(struct gtk_graph *g)
|
|||
case GRAPH_WSCALE:
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(graph_wscale), TRUE);
|
||||
break;
|
||||
case GRAPH_UNDEFINED:
|
||||
break;
|
||||
}
|
||||
graph_init = gtk_check_button_new_with_label("Init on change");
|
||||
graph_sep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
|
||||
|
|
|
@ -84,8 +84,18 @@ TCPStreamDialog::TCPStreamDialog(QWidget *parent, capture_file *cf, tcp_graph_ty
|
|||
QDialog(NULL, Qt::Window),
|
||||
ui(new Ui::TCPStreamDialog),
|
||||
cap_file_(cf),
|
||||
ts_offset_(0),
|
||||
ts_origin_conn_(true),
|
||||
seq_offset_(0),
|
||||
seq_origin_zero_(true),
|
||||
title_(NULL),
|
||||
base_graph_(NULL),
|
||||
tput_graph_(NULL),
|
||||
seg_graph_(NULL),
|
||||
ack_graph_(NULL),
|
||||
rwin_graph_(NULL),
|
||||
tracer_(NULL),
|
||||
packet_num_(0),
|
||||
mouse_drags_(true),
|
||||
rubber_band_(NULL),
|
||||
num_dsegs_(-1),
|
||||
|
@ -98,6 +108,14 @@ TCPStreamDialog::TCPStreamDialog(QWidget *parent, capture_file *cf, tcp_graph_ty
|
|||
ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
graph_.type = GRAPH_UNDEFINED;
|
||||
set_address(&graph_.src_address, AT_NONE, 0, NULL);
|
||||
graph_.src_port = 0;
|
||||
set_address(&graph_.dst_address, AT_NONE, 0, NULL);
|
||||
graph_.dst_port = 0;
|
||||
graph_.stream = 0;
|
||||
graph_.segments = NULL;
|
||||
|
||||
struct tcpheader *header = select_tcpip_session(cap_file_, ¤t);
|
||||
if (!header) {
|
||||
done(QDialog::Rejected);
|
||||
|
|
|
@ -34,7 +34,8 @@ typedef enum tcp_graph_type_ {
|
|||
GRAPH_TSEQ_TCPTRACE,
|
||||
GRAPH_THROUGHPUT,
|
||||
GRAPH_RTT,
|
||||
GRAPH_WSCALE
|
||||
GRAPH_WSCALE,
|
||||
GRAPH_UNDEFINED
|
||||
} tcp_graph_type;
|
||||
|
||||
struct segment {
|
||||
|
|
Loading…
Reference in New Issue