mirror of https://github.com/acidanthera/audk.git
EmulatorPkg/Unix/Host: Initialize field in BerkeleyPacketFilter.c
Initialize Private->ReadBuffer to NULL. Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Andrew Fish <afish@apple.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Tested-by: Andrew Fish <afish@apple.com>
This commit is contained in:
parent
32e55c9f18
commit
97a1b9f473
|
@ -216,6 +216,7 @@ EmuSnpStart (
|
|||
}
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
Private->ReadBuffer = NULL;
|
||||
if (Private->BpfFd == 0) {
|
||||
Status = OpenBpfFileDescriptor (Private, &Private->BpfFd);
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
|
Loading…
Reference in New Issue