From 01568c1709771d0e486cc08d18f8e4c9630936c0 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Sun, 27 Jun 2010 21:47:06 +0000 Subject: Make sure some variables are initialized. svn path=/trunk/; revision=33340 --- epan/dissectors/dcerpc/idl2wrs.c | 8 ++++---- epan/dissectors/packet-dcerpc-drsuapi.c | 29 +++++++++++++++-------------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/epan/dissectors/dcerpc/idl2wrs.c b/epan/dissectors/dcerpc/idl2wrs.c index 2eba2b2e32..ada09deb31 100644 --- a/epan/dissectors/dcerpc/idl2wrs.c +++ b/epan/dissectors/dcerpc/idl2wrs.c @@ -1,5 +1,5 @@ /* idl2wrs.c - * IDL to Wireshark dissector compiler + * IDL to Wireshark dissector compiler * * $Id$ * @@ -735,7 +735,7 @@ parsebrackets(token_item_t *ti, bracket_item_t **bracket){ fprintf(stderr, "ERROR: parsebrackets should not be reached unknown tag:%s\n", ti->str); Exit(10); } - + return NULL; } @@ -2199,7 +2199,7 @@ static void parsetypedefunion(int pass) continue; } } - + if (!tmpti || !tmpti->next){ fprintf(stderr, "ERROR: typedefunion missing matching '}'\n"); Exit(10); @@ -2249,7 +2249,7 @@ static void parsetypedefunion(int pass) FPRINTF(eth_code, "\n"); break; case 4: - FPRINTF(eth_code, " guint32 level;\n"); + FPRINTF(eth_code, " guint32 level = 0;\n"); FPRINTF(eth_code, "\n"); FPRINTF(eth_code, " ALIGN_TO_4_BYTES;\n"); FPRINTF(eth_code, "\n"); diff --git a/epan/dissectors/packet-dcerpc-drsuapi.c b/epan/dissectors/packet-dcerpc-drsuapi.c index 30383a56f7..c92005393a 100644 --- a/epan/dissectors/packet-dcerpc-drsuapi.c +++ b/epan/dissectors/packet-dcerpc-drsuapi.c @@ -1,5 +1,6 @@ /* DO NOT EDIT * This dissector is autogenerated + * (XXX - Is this true?) */ /* packet-dcerpc-drsuapi.c @@ -1153,7 +1154,7 @@ drsuapi_dissect_union_DsBindInfo(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -1832,7 +1833,7 @@ drsuapi_dissect_union_DsReplicaSyncRequest(tvbuff_t *tvb, int offset, packet_inf proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -2567,7 +2568,7 @@ drsuapi_dissect_union_DsGetNCChangesRequest(tvbuff_t *tvb, int offset, packet_in proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -2951,7 +2952,7 @@ drsuapi_dissect_union_DsGetNCChangesCtr(tvbuff_t *tvb, int offset, packet_info * proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -3232,7 +3233,7 @@ drsuapi_dissect_union_DsReplicaUpdateRefsRequest(tvbuff_t *tvb, int offset, pack proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -3787,7 +3788,7 @@ drsuapi_dissect_union_DsNameRequest(tvbuff_t *tvb, int offset, packet_info *pinf proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -3952,7 +3953,7 @@ drsuapi_dissect_union_DsNameCtr(tvbuff_t *tvb, int offset, packet_info *pinfo, p proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -4168,7 +4169,7 @@ drsuapi_dissect_union_DsWriteAccountSpnRequest(tvbuff_t *tvb, int offset, packet proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -4248,7 +4249,7 @@ drsuapi_dissect_union_DsWriteAccountSpnResult(tvbuff_t *tvb, int offset, packet_ proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -4437,7 +4438,7 @@ drsuapi_dissect_union_DsGetDCInfoRequest(tvbuff_t *tvb, int offset, packet_info proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -5101,7 +5102,7 @@ drsuapi_dissect_union_DsGetDCInfoCtr(tvbuff_t *tvb, int offset, packet_info *pin proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -5470,7 +5471,7 @@ drsuapi_dissect_union_DsReplicaGetInfoRequest(tvbuff_t *tvb, int offset, packet_ proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; @@ -6181,7 +6182,7 @@ drsuapi_dissect_union_DsRplicaOpOptions(tvbuff_t *tvb, int offset, packet_info * proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint16 level; + guint16 level = 0; ALIGN_TO_2_BYTES; @@ -7811,7 +7812,7 @@ drsuapi_dissect_union_DsReplicaInfo(tvbuff_t *tvb, int offset, packet_info *pinf proto_item *item=NULL; proto_tree *tree=NULL; int old_offset; - guint32 level; + guint32 level = 0; ALIGN_TO_4_BYTES; -- cgit v1.2.3