"fix" some warnings about "might be used uninitialized" variables

svn path=/trunk/; revision=22983
This commit is contained in:
Jörg Mayer 2007-09-26 07:09:51 +00:00
parent 2d8cff8a03
commit 6bb9369681
3 changed files with 5 additions and 5 deletions

View File

@ -1980,7 +1980,7 @@ dissect_transact_data(tvbuff_t *tvb, int offset, int convert,
int count;
int cptr;
const char *string;
gint string_len;
gint string_len = 0;
if (aux_count_p != NULL)
*aux_count_p = 0;

View File

@ -729,7 +729,7 @@ dissect_tds_query5_packet(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tre
guint offset;
guint pos;
guint token_len_field_size = 2;
guint token_len_field_val;
guint token_len_field_val = 0;
guint8 token;
guint token_sz;
proto_item *query_hdr;
@ -1472,7 +1472,7 @@ dissect_tds_resp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *token_tree;
guint pos, token_sz = 0;
guint token_len_field_size = 2;
guint token_len_field_val;
guint token_len_field_val = 0;
guint8 token;
struct _netlib_data nl_data;
gint length_remaining;

View File

@ -912,7 +912,7 @@ copy_hex_cb(GtkWidget * w _U_, gpointer data _U_, copy_data_type data_type)
{
GtkWidget *bv;
guint len;
guint len = 0;
int bytes_consumed = 0;
int flags;
@ -1640,7 +1640,7 @@ packet_hex_reprint(GtkWidget *bv)
int start, end, encoding;
int astart, aend;
const guint8 *data;
guint len;
guint len = 0;
start = GPOINTER_TO_INT(OBJECT_GET_DATA(bv, E_BYTE_VIEW_START_KEY));
end = GPOINTER_TO_INT(OBJECT_GET_DATA(bv, E_BYTE_VIEW_END_KEY));