From: Francois-Xavier Le Bail Date: Sun, 4 Jun 2023 13:11:46 +0000 (+0200) Subject: gencode: Remove an assignment after a bpf_error() call X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/4823885f09baf68d837f6a7d984ebf058afd3dc5 gencode: Remove an assignment after a bpf_error() call Reminder: bpf_error() do a longjmp(). This change should fix Coverity CID 1529951. --- diff --git a/gencode.c b/gencode.c index eec3fefa..caa06f99 100644 --- a/gencode.c +++ b/gencode.c @@ -8551,7 +8551,6 @@ gen_ifindex(compiler_state_t *cstate, int ifindex) /* We have a FILE *, so this is a savefile */ bpf_error(cstate, "ifindex not supported on %s when reading savefiles", pcap_datalink_val_to_description_or_dlt(cstate->linktype)); - b0 = NULL; /*NOTREACHED*/ } /* match ifindex */