]> The Tcpdump Group git mirrors - libpcap/commit
In activate routines, don't pre-set the status; set it for all errors.
authorGuy Harris <[email protected]>
Fri, 18 Apr 2014 18:10:33 +0000 (11:10 -0700)
committerGuy Harris <[email protected]>
Fri, 18 Apr 2014 18:10:33 +0000 (11:10 -0700)
commit535425ab086ab2cddb629844376a43f4549257e5
tree12b4cbbce389a65eb868590e3cb07a66068eb1f0
parent2ff75280f4ea0b3560801b751e26be3c0da86cdf
In activate routines, don't pre-set the status; set it for all errors.

This fixes some cases where it wasn't being set properly or at all, and
also means that, as it's not being set initially, compilers that do any
dataflow analysis and report uninitialized variables, and static
analyzers, should report cases where we aren't setting variables correctly.

See GH #352.
pcap-bpf.c
pcap-dlpi.c
pcap-libdlpi.c