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:
parent
2fb1cef0cf
commit
4c555c6b57
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue