Make sure some variables are initialized.

svn path=/trunk/; revision=33340
This commit is contained in:
Gerald Combs 2010-06-27 21:47:06 +00:00
parent 2e05cc68c0
commit 01568c1709
2 changed files with 19 additions and 18 deletions

View File

@ -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");

View File

@ -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;