radius: fix this condition has identical branches [-Werror=duplicated-branches] found by gcc7

Change-Id: I654ead4d834af90e14568a54c7a914a3774c05bc
Reviewed-on: https://code.wireshark.org/review/20470
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Alexis La Goutte 2017-03-09 19:20:37 +01:00 committed by Peter Wu
parent 6d584aad72
commit e4b90a9451
1 changed files with 2 additions and 0 deletions

View File

@ -2303,9 +2303,11 @@ register_attrs(gpointer k _U_, gpointer v, gpointer p)
hfri[2].hfinfo.display = BASE_NONE;
len_hf++;
#if 0 /* Fix -Wduplicated-branches */
} else if (a->type == radius_tlv) {
hfri[0].hfinfo.type = FT_BYTES;
hfri[0].hfinfo.display = BASE_NONE;
#endif
} else {
hfri[0].hfinfo.type = FT_BYTES;
hfri[0].hfinfo.display = BASE_NONE;