From be297f5f302b9df8cbc6cd0ae8ce1d920315f49c Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Sun, 31 Jul 2011 21:54:46 +0000 Subject: [PATCH] =?UTF-8?q?Try=20to=20fix:=20cc1:=20warnings=20being=20tre?= =?UTF-8?q?ated=20as=20errors=20../../gtk/sctp=5Fgraph=5Fdlg.c:=20In=20fun?= =?UTF-8?q?ction=20=E2=80=98draw=5Ftsn=5Fgraph=E2=80=99:=20../../gtk/sctp?= =?UTF-8?q?=5Fgraph=5Fdlg.c:511:=20error:=20=E2=80=98cr=E2=80=99=20may=20b?= =?UTF-8?q?e=20used=20uninitialized=20in=20this=20function=20../../gtk/sct?= =?UTF-8?q?p=5Fgraph=5Fdlg.c:=20In=20function=20=E2=80=98draw=5Fsack=5Fgra?= =?UTF-8?q?ph=E2=80=99:=20../../gtk/sctp=5Fgraph=5Fdlg.c:163:=20error:=20?= =?UTF-8?q?=E2=80=98cr=E2=80=99=20may=20be=20used=20uninitialized=20in=20t?= =?UTF-8?q?his=20function=20../../gtk/sctp=5Fgraph=5Fdlg.c:=20In=20functio?= =?UTF-8?q?n=20=E2=80=98draw=5Fnr=5Fsack=5Fgraph=E2=80=99:=20../../gtk/sct?= =?UTF-8?q?p=5Fgraph=5Fdlg.c:341:=20error:=20=E2=80=98cr=E2=80=99=20may=20?= =?UTF-8?q?be=20used=20uninitialized=20in=20this=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=38296 --- gtk/sctp_graph_dlg.c | 6 +++--- 1 file 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) {