From 2bc967a9c36979506a8796716a27f13eb1e0cc2e Mon Sep 17 00:00:00 2001 From: sadiqsada Date: Tue, 2 Jan 2024 10:50:04 -0800 Subject: [PATCH] Initialize mFp file pointer to null Bug: 288170590 Test: atest VtsHalTvTunerTargetTest Change-Id: Ia1d78e42094073c6cfc7e4e00d65a540d148f02e --- tv/tuner/aidl/vts/functional/utils/IpStreamer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tv/tuner/aidl/vts/functional/utils/IpStreamer.h b/tv/tuner/aidl/vts/functional/utils/IpStreamer.h index d073003c98..8ac2ddb8ed 100644 --- a/tv/tuner/aidl/vts/functional/utils/IpStreamer.h +++ b/tv/tuner/aidl/vts/functional/utils/IpStreamer.h @@ -37,7 +37,7 @@ class IpStreamer { private: int mSockfd = -1; - FILE* mFp; + FILE* mFp = nullptr; bool mIsIpV4 = true; // By default, set to IPV4 int mPort = 12345; // default port int mBufferSize = 188; // bytes