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>
This commit is contained in:
Alexis La Goutte 2017-04-04 14:07:37 +02:00 committed by Guy Harris
parent 2fb1cef0cf
commit 4c555c6b57
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}
}