Fix Dead Store (Dead assignement/Dead increment) warning found by Clang

Change-Id: I5bfbfc03795cd8ba3cd102d2249672ce3e48bc5f
Reviewed-on: https://code.wireshark.org/review/4179
Reviewed-by: Evan Huus <eapache@gmail.com>