diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-31 21:54:46 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-31 21:54:46 +0000 |
commit | 4505b0d56384c981fe73bcf1da6cbe583641f87b (patch) | |
tree | 292b8e38d71f97b50ea9346cdc3a595613834b86 | |
parent | 148b14e1d7f0396e7a0b9d237ac472135ab396dc (diff) |
Try to fix:
cc1: warnings being treated as errors
../../gtk/sctp_graph_dlg.c: In function ‘draw_tsn_graph’:
../../gtk/sctp_graph_dlg.c:511: error: ‘cr’ may be used uninitialized in this function
../../gtk/sctp_graph_dlg.c: In function ‘draw_sack_graph’:
../../gtk/sctp_graph_dlg.c:163: error: ‘cr’ may be used uninitialized in this function
../../gtk/sctp_graph_dlg.c: In function ‘draw_nr_sack_graph’:
../../gtk/sctp_graph_dlg.c:341: error: ‘cr’ may be used uninitialized in this function
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38296 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | gtk/sctp_graph_dlg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c index efe8e99aef..96c457d5e3 100644 --- a/gtk/sctp_graph_dlg.c +++ b/gtk/sctp_graph_dlg.c @@ -160,7 +160,7 @@ draw_sack_graph(struct sctp_udata *u_data) struct gaps *gap; guint32 /*max_num,*/ diff; guint32 *dup_list; - cairo_t * cr; + cairo_t * cr = NULL; if (u_data->dir==2) { @@ -338,7 +338,7 @@ draw_nr_sack_graph(struct sctp_udata *u_data) guint32 /*max_num,*/ diff; /* This holds the sum of gap acks and nr gap acks */ guint16 total_gaps = 0; - cairo_t *cr; + cairo_t *cr = NULL; if (u_data->dir==2) { @@ -508,7 +508,7 @@ draw_tsn_graph(struct sctp_udata *u_data) guint32 tsnumber=0; guint32 min_secs=0, diff; gint xvalue, yvalue; - cairo_t *cr; + cairo_t *cr = NULL; if (u_data->dir==1) { |