Get rid of unused variable.

It's filled in, and modified, but never used after that.

Change-Id: Id5e1e9e5bc3223b04bd77f94117388ec8aa274d6
Reviewed-on: https://code.wireshark.org/review/33922
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2019-07-12 17:21:24 -07:00
parent 5e54c7147e
commit 2c9db3edd3
1 changed files with 0 additions and 8 deletions

View File

@ -1721,7 +1721,6 @@ dissect_at_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_item *command_tree = NULL;
proto_tree *parameters_item = NULL;
proto_item *parameters_tree = NULL;
guint8 *col_str = NULL;
gchar *at_stream;
gchar *at_command = NULL;
gint i_char = 0;
@ -1745,9 +1744,6 @@ dissect_at_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
if (!command_number) {
proto_tree_add_item(tree, hf_data, tvb, offset, length, ENC_NA | ENC_ASCII);
col_str = (guint8 *) wmem_alloc(wmem_packet_scope(), length + 1);
tvb_memcpy(tvb, col_str, offset, length);
col_str[length] = '\0';
}
at_stream = (guint8 *) wmem_alloc(wmem_packet_scope(), length + 1);
@ -1756,10 +1752,6 @@ dissect_at_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
while (at_stream[i_char]) {
at_stream[i_char] = g_ascii_toupper(at_stream[i_char]);
if (!command_number) {
col_str[i_char] = g_ascii_toupper(col_str[i_char]);
if (!g_ascii_isgraph(col_str[i_char])) col_str[i_char] = ' ';
}
i_char += 1;
}