Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 38296: /trunk/gtk/ /trunk/gtk/: sctp

From: Balint Reczey <balint.reczey@xxxxxxxxxxxx>
Date: Mon, 1 Aug 2011 16:02:38 +0200
On 08/01/2011 12:07 AM, Joerg Mayer wrote:
On Sun, Jul 31, 2011 at 09:54:48PM +0000, etxrab@xxxxxxxxxxxxx wrote:
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=38296

User: etxrab
Date: 2011/07/31 02:54 PM

Log:
  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

...

Just a curious question: Is this a compiler bug? It didn't complain on my
system and the code looked "right" to me.
I think cairo_destroy(cr); should be followed by cr = NULL;

Cheers,
Balint