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:
Andrew Fish 2019-08-15 09:55:06 -07:00 committed by Michael D Kinney
parent 32e55c9f18
commit 97a1b9f473
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ EmuSnpStart (
} }
Status = EFI_SUCCESS; Status = EFI_SUCCESS;
Private->ReadBuffer = NULL;
if (Private->BpfFd == 0) { if (Private->BpfFd == 0) {
Status = OpenBpfFileDescriptor (Private, &Private->BpfFd); Status = OpenBpfFileDescriptor (Private, &Private->BpfFd);
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {