Wireshark-dev: [Wireshark-dev] warning -> error in r41911
From: Martin Kaiser <lists@xxxxxxxxx>
Date: Tue, 3 Apr 2012 22:31:35 +0200
Hi Graham and all,

r41911 gives a warning on my system

packet-dcerpc-spoolss.c: In function âdissect_spoolss_string_parm_dataâ:
packet-dcerpc-spoolss.c:497: error: âitemâ may be used uninitialized in
this function
make[5]: *** [libdissectors_la-packet-dcerpc-spoolss.lo] Error 1
make[5]: *** Waiting for unfinished jobs....


trivial patch is attached

Best regards,

   Martin
Index: epan/dissectors/packet-dcerpc-spoolss.c
===================================================================
--- epan/dissectors/packet-dcerpc-spoolss.c	(revision 41911)
+++ epan/dissectors/packet-dcerpc-spoolss.c	(working copy)
@@ -494,7 +494,7 @@
 	dcerpc_info *di = pinfo->private_data;
 	guint32 buffer_len, len;
 	gchar *s;
-	proto_item *item;
+	proto_item *item = NULL;
 
 	if (di->conformant_run)
 		return offset;