aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-07-15 18:06:29 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-07-15 18:06:29 +0000
commit7c5b4715847ac775ec3d4b418e313d2f6b7fbc5c (patch)
treeea221007795155579915eedc5e3f4885fc36977b /epan/proto.c
parent4c34d30a35e4f74845728d6582f23960e25ad25a (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50632
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 93bd25533e..b77d3a3e33 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -1354,8 +1354,7 @@ proto_tree_new_item(field_info *new_fi, proto_tree *tree,
case FT_AX25:
if (length != 7) {
length_error = length < 7 ? TRUE : FALSE;
- expert_add_info_format(NULL, tree, PI_MALFORMED, PI_ERROR, "Trying to fetch an AX.25 address with length %d", length);
- THROW(ReportedBoundsError);
+ report_type_length_mismatch(tree, "an AX.25 address", length, length_error);
}
proto_tree_set_ax25_tvb(new_fi, tvb, start);
break;