diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-04-04 14:07:37 +0200 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-04 17:00:49 +0000 |
commit | 4c555c6b57e68a64f0efcc642edf051ea767b9ac (patch) | |
tree | ed75d8767503a62a4171403dcceca73c237a8525 | |
parent | 2fb1cef0cf95021290a6718cf902ff2a29ad806d (diff) | |
download | wireshark-4c555c6b57e68a64f0efcc642edf051ea767b9ac.tar.gz |
osi-utils: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I48121b5e73501a39ff5fb7986ab58242ee32af53
Reviewed-on: https://code.wireshark.org/review/20902
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r-- | epan/osi-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/osi-utils.c b/epan/osi-utils.c index 46d20caf0e..245d3e14ee 100644 --- a/epan/osi-utils.c +++ b/epan/osi-utils.c @@ -241,7 +241,7 @@ print_address_prefix_buf(const guint8 *ad, int length, gchar *buf, int buf_len) /* Odd half-octet? */ if (length & 1) { /* Yes - print it (it's the upper half-octet) */ - cur += g_snprintf(cur, (gulong) (buf_len-(cur-buf)), "%x", (ad[tmp] & 0xF0)>>4 ); + g_snprintf(cur, (gulong) (buf_len-(cur-buf)), "%x", (ad[tmp] & 0xF0)>>4 ); } } } |