diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2018-03-03 16:02:14 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-03-04 07:44:22 +0000 |
commit | 41f18ae7f5c13d55ada84e3895f0cb656043e826 (patch) | |
tree | 8ce29717ab2528da76319646620f83cafff8a2a6 /epan/dissectors/packet-wap.c | |
parent | b475758123fde5fae476cd275958ac16d8eac7bd (diff) |
tvb_get_guintvar: correct a debug print
We always start with counter=0, guint *octetCount is used only as a
return value.
Change-Id: I3c080c59ef7620c5007f6dc3139a78a72cff2a21
Reviewed-on: https://code.wireshark.org/review/26243
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-wap.c')
-rw-r--r-- | epan/dissectors/packet-wap.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/epan/dissectors/packet-wap.c b/epan/dissectors/packet-wap.c index 64f273f068..f9d9b11688 100644 --- a/epan/dissectors/packet-wap.c +++ b/epan/dissectors/packet-wap.c @@ -34,15 +34,8 @@ tvb_get_guintvar (tvbuff_t *tvb, guint offset, guint *octetCount, packet_info *p char cont = 1; #ifdef DEBUG - if (octetCount != NULL) - { - fprintf (stderr, "dissect_wap: Starting tvb_get_guintvar at offset %d, count=%d\n", offset, *octetCount); - /* counter = *octetCount; */ - } - else - { - fprintf (stderr, "dissect_wap: Starting tvb_get_guintvar at offset %d, count=NULL\n", offset); - } + fprintf (stderr, + "dissect_wap: Starting tvb_get_guintvar at offset %d\n", offset); #endif while (cont != 0) |