aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-02-19 10:26:21 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-02-19 10:26:21 +0000
commit8c6bda4db510b1f360d879ef7d4732babd6ba660 (patch)
tree1ade8ad61b571354291d9cbe9ec747c1fba14e9c /gtk
parent1401a27b06ef8607de97ba0f593a1abe8249acfc (diff)
Squelch a couple (false) uninitialized variable warnings
svn path=/trunk/; revision=20858
Diffstat (limited to 'gtk')
-rw-r--r--gtk/graph_analysis.c2
-rw-r--r--gtk/tcp_graph.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/gtk/graph_analysis.c b/gtk/graph_analysis.c
index 9ead7cdbb8..f5c9e1c421 100644
--- a/gtk/graph_analysis.c
+++ b/gtk/graph_analysis.c
@@ -286,7 +286,7 @@ static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data)
guint32 start_position, end_position, item_width, header_length;
guint32 current_item;
graph_analysis_item_t *gai;
- guint16 first_conv_num;
+ guint16 first_conv_num = 0;
gboolean several_convs = FALSE;
gboolean first_packet = TRUE;
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c
index 7bb12badc3..3be6140edf 100644
--- a/gtk/tcp_graph.c
+++ b/gtk/tcp_graph.c
@@ -3510,8 +3510,8 @@ static void tseq_tcptrace_make_elmtlist (struct graph *g)
struct element *elements0, *e0; /* list of elmts with prio 0 */
struct element *elements1, *e1; /* list of elmts with prio 1 */
double x0, y0;
- double p_t; /* ackno, window and time of previous segment */
- double p_ackno, p_win;
+ double p_t = 0; /* ackno, window and time of previous segment */
+ double p_ackno = 0, p_win = 0;
gboolean ack_seen=FALSE;
int toggle=0;
guint32 seq_base;