diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-09-07 13:02:22 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2017-09-07 18:32:15 +0000 |
commit | db63f75eab219c16c450d4fcd57bfeae1bcb8cb6 (patch) | |
tree | 7774b263bf012cce873978ed95c4dc2a90e9d818 /wiretap/netmon.c | |
parent | d38197bb676d8937f5d9acd534200195b2e541bc (diff) |
More [-Wmaybe-uninitialized] fixes with -Og
There may be some amount of bogosity involved but initialize the
variables and add a default case to prevent the noise and the build
from breaking with -Werror.
Change-Id: I20432ea74a1e5edc28be75a97077c9aa7bc87a35
Reviewed-on: https://code.wireshark.org/review/23426
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'wiretap/netmon.c')
-rw-r--r-- | wiretap/netmon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c index 02d1747a1a..466c87affc 100644 --- a/wiretap/netmon.c +++ b/wiretap/netmon.c @@ -1056,6 +1056,9 @@ netmon_process_record(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr, case 0xE088: pkt_encap = WTAP_ENCAP_MA_WFP_CAPTURE_AUTH_V6; break; + default: + pkt_encap = WTAP_ENCAP_UNKNOWN; + break; } } else if ((network & 0xF000) == NETMON_NET_PCAP_BASE) { /* |