Try to fix:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 31 Jul 2011 21:54:46 +0000 (21:54 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 31 Jul 2011 21:54:46 +0000 (21:54 +0000)
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

gtk/sctp_graph_dlg.c

index efe8e99aef5a900a641cb9c34ac5286b58b9a4fc..96c457d5e37d71fe23337c39450ed4a48db85107 100644 (file)
@@ -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)
        {