diff options
author | Martin Mathieson <martin.mathieson@keysight.com> | 2022-11-20 21:18:22 +0000 |
---|---|---|
committer | Martin Mathieson <martin.mathieson@keysight.com> | 2022-11-22 20:55:24 +0000 |
commit | 793365d0e04e43c823521297641bc6ad0ffb6ff1 (patch) | |
tree | 2cf2e193e9a0b390a6e58a77ce9e388fd4cc905f /epan/tvbuff.c | |
parent | ec353e89f321487dfad19d4dcf1d68ff38d47a0f (diff) |
Fix some issues seen with cppcheck
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index ab1c075fb9..99d37ed68b 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -132,7 +132,7 @@ tvb_new_chain(tvbuff_t *parent, tvbuff_t *backing) void tvb_add_to_chain(tvbuff_t *parent, tvbuff_t *child) { - tvbuff_t *tmp = child; + tvbuff_t *tmp; DISSECTOR_ASSERT(parent); DISSECTOR_ASSERT(child); @@ -4208,7 +4208,7 @@ tvb_find_line_end_unquoted(tvbuff_t *tvb, const gint offset, int len, gint *next gint tvb_skip_wsp(tvbuff_t *tvb, const gint offset, const gint maxlength) { - gint counter = offset; + gint counter; gint end, tvb_len; guint8 tempchar; @@ -4237,7 +4237,7 @@ tvb_skip_wsp(tvbuff_t *tvb, const gint offset, const gint maxlength) gint tvb_skip_wsp_return(tvbuff_t *tvb, const gint offset) { - gint counter = offset; + gint counter; guint8 tempchar; DISSECTOR_ASSERT(tvb && tvb->initialized); |