Fix the dead initialization warnings found by clang's static analysis
("Value stored to 'xxx' during its initialization is never read") svn path=/trunk/; revision=35598
This commit is contained in:
parent
9c04eb9b2c
commit
fc7b0c019b
|
@ -5497,8 +5497,8 @@ static gint dissect_r3_command (tvbuff_t *tvb, guint32 start_offset, guint32 len
|
|||
proto_item *cmd_item = NULL;
|
||||
proto_tree *cmd_tree = NULL;
|
||||
const gchar *cn = NULL;
|
||||
guint8 cmdLen = tvb_get_guint8 (tvb, start_offset + 0);
|
||||
guint8 cmd = tvb_get_guint8 (tvb, start_offset + 1);
|
||||
guint8 cmdLen;
|
||||
guint8 cmd;
|
||||
|
||||
tvb_ensure_bytes_exist (tvb, start_offset, 2);
|
||||
|
||||
|
|
|
@ -8905,7 +8905,7 @@ static void
|
|||
dissect_bacapp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
||||
{
|
||||
guint8 flag, bacapp_type;
|
||||
guint save_fragmented = FALSE, data_offset = 0, bacapp_apdu_size = fGetMaxAPDUSize(0), fragment = FALSE;
|
||||
guint save_fragmented = FALSE, data_offset = 0, bacapp_apdu_size, fragment = FALSE;
|
||||
tvbuff_t* new_tvb = NULL;
|
||||
guint offset = 0;
|
||||
guint8 bacapp_seqno = 0;
|
||||
|
|
|
@ -6444,7 +6444,7 @@ static void dissect_gtp_common(tvbuff_t * tvb, packet_info * pinfo, proto_tree *
|
|||
guint8 sub_proto, acfield_len = 0, control_field;
|
||||
gtp_msg_hash_t *gcrp=NULL;
|
||||
conversation_t *conversation=NULL;
|
||||
gtp_conv_info_t *gtp_info=(gtp_conv_info_t *)pinfo->private_data;
|
||||
gtp_conv_info_t *gtp_info;
|
||||
void* pd_save;
|
||||
|
||||
|
||||
|
|
|
@ -2618,7 +2618,7 @@ static void add_roundtrip_delay_info(tvbuff_t *tvb, packet_info *pinfo, proto_tr
|
|||
static int
|
||||
rtcp_packet_type_to_tree( int rtcp_packet_type)
|
||||
{
|
||||
int tree = ett_rtcp;
|
||||
int tree;
|
||||
|
||||
switch(rtcp_packet_type) {
|
||||
case RTCP_SR: tree = ett_rtcp_sr; break;
|
||||
|
|
|
@ -3031,7 +3031,7 @@ tvb_find_line_end_unquoted(tvbuff_t *tvb, const gint offset, int len,
|
|||
gint tvb_skip_wsp(tvbuff_t* tvb, const gint offset, const gint maxlength)
|
||||
{
|
||||
gint counter = offset;
|
||||
gint end = offset + maxlength,tvb_len;
|
||||
gint end, tvb_len;
|
||||
guint8 tempchar;
|
||||
|
||||
/* Get the length remaining */
|
||||
|
|
|
@ -1258,7 +1258,7 @@ pcap_read_erf_exheader(FILE_T fh, union wtap_pseudo_header *pseudo_header,
|
|||
guint8 erf_exhdr[8];
|
||||
guint64 erf_exhdr_sw;
|
||||
int i = 0, max = sizeof(pseudo_header->erf.ehdr_list)/sizeof(struct erf_ehdr);
|
||||
guint8 type = pseudo_header->erf.phdr.type;
|
||||
guint8 type;
|
||||
*psize = 0;
|
||||
if (pseudo_header->erf.phdr.type & 0x80){
|
||||
do{
|
||||
|
|
Loading…
Reference in New Issue