summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorAndrew Fish <afish@apple.com>2019-08-15 09:55:06 -0700
committerMichael D Kinney <michael.d.kinney@intel.com>2019-08-19 09:57:26 -0700
commit97a1b9f4732fb2e68c2b67f15eb8563c38227404 (patch)
treed261400fb85da008473f1409277da13a5709532a /EmulatorPkg
parent32e55c9f180089f7edb6a9f97e3f428f9a6a5227 (diff)
downloadedk2-97a1b9f4732fb2e68c2b67f15eb8563c38227404.tar.gz
edk2-97a1b9f4732fb2e68c2b67f15eb8563c38227404.tar.bz2
edk2-97a1b9f4732fb2e68c2b67f15eb8563c38227404.zip
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>
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c b/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c
index 8d0eb0d197..540340f25f 100644
--- a/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c
+++ b/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c
@@ -216,6 +216,7 @@ EmuSnpStart (
}
Status = EFI_SUCCESS;
+ Private->ReadBuffer = NULL;
if (Private->BpfFd == 0) {
Status = OpenBpfFileDescriptor (Private, &Private->BpfFd);
if (EFI_ERROR (Status)) {