Initialize some hf_... vars to -1;

(Reduces the number of checkhf false positives)

svn path=/trunk/; revision=47310
This commit is contained in:
Bill Meier 2013-01-26 21:42:36 +00:00
parent 50efee619e
commit 329f6e8cc0
8 changed files with 672 additions and 672 deletions

View File

@ -1,5 +1,5 @@
/* packet-dcerpc-frsapi.c
* Routines for the frs API (File Replication Service) MSRPC interface
* Routines for the frs API (File Replication Service) MSRPC interface
* Copyright 2004 Jean-Baptiste Marchand <jbm@hsc.fr>
*
* $Id$
@ -33,7 +33,7 @@
static int proto_dcerpc_frsapi = -1;
static int hf_frsapi_opnum = 0;
static int hf_frsapi_opnum = -1;
static gint ett_dcerpc_frsapi = -1;
@ -49,7 +49,7 @@ static e_uuid_t uuid_dcerpc_frsapi = {
{ 0x9a, 0x3c, 0x00, 0xc0, 0x4f, 0xc9, 0xb2, 0x32 }
};
static guint16 ver_dcerpc_frsapi = 1;
static guint16 ver_dcerpc_frsapi = 1;
static dcerpc_sub_dissector dcerpc_frsapi_dissectors[] = {
@ -72,9 +72,9 @@ proto_register_dcerpc_frsapi(void)
static hf_register_info hf[] = {
{ &hf_frsapi_opnum,
{ &hf_frsapi_opnum,
{ "Operation", "frsapi.opnum", FT_UINT16, BASE_DEC,
NULL, 0x0, NULL, HFILL }},
NULL, 0x0, NULL, HFILL }},
};

View File

@ -1646,7 +1646,7 @@ dissect_ndr_nt_acct_ctrl(tvbuff_t *tvb, int offset, packet_info *pinfo,
return offset;
}
static int hf_logonhours_unknown_char;
static int hf_logonhours_unknown_char = -1;
static int
dissect_LOGON_HOURS_entry(tvbuff_t *tvb, int offset,

View File

@ -33,7 +33,7 @@
static int proto_dcerpc_pnp = -1;
static int hf_pnp_opnum = 0;
static int hf_pnp_opnum = -1;
static gint ett_dcerpc_pnp = -1;

View File

@ -33,7 +33,7 @@
static int proto_dcerpc_rras = -1;
static int hf_rras_opnum = 0;
static int hf_rras_opnum = -1;
static gint ett_dcerpc_rras = -1;

File diff suppressed because it is too large Load Diff

View File

@ -221,7 +221,7 @@ static int hf_ieee802154_src64_origin = -1;
static int hf_ieee802154_fcs = -1;
static int hf_ieee802154_rssi = -1;
static int hf_ieee802154_fcs_ok = -1;
static int hf_ieee802154_correlation;
static int hf_ieee802154_correlation = -1;
/* Registered fields for Command Packets */
static int hf_ieee802154_cmd_id = -1;

View File

@ -169,8 +169,8 @@ static int hf_nfs_read_offset = -1;
static int hf_nfs_read_count = -1;
static int hf_nfs_read_totalcount = -1;
static int hf_nfs_data = -1;
static int hf_read_data_length;
static int hf_write_data_length;
static int hf_read_data_length = -1;
static int hf_write_data_length = -1;
static int hf_nfs_write_beginoffset = -1;
static int hf_nfs_write_offset = -1;
static int hf_nfs_write_totalcount = -1;

View File

@ -285,7 +285,7 @@ static int hf_rdp_optionsPriLow = -1;
static int hf_rdp_optionsCompressRDP = -1;
static int hf_rdp_optionsCompress = -1;
static int hf_rdp_optionsShowProtocol= -1;
static int hf_rdp_optionsRemoteControlPersistent;
static int hf_rdp_optionsRemoteControlPersistent = -1;
static int hf_rdp_channelPDUHeader = -1;
static int hf_rdp_channelFlags = -1;