[posix] fix uninitialized pointer read (#9562)

This commit is contained in:
hastigondaliya
2023-10-26 04:47:41 -07:00
committed by GitHub
parent 91b7c3ff3f
commit 4c75b6b489
+3 -3
View File
@@ -671,9 +671,9 @@ exit:
otError InfraNetif::DiscoverNat64Prefix(uint32_t aInfraIfIndex)
{
otError error = OT_ERROR_NONE;
struct addrinfo *hints = nullptr;
struct gaicb *reqs[1];
otError error = OT_ERROR_NONE;
struct addrinfo *hints = nullptr;
struct gaicb *reqs[1] = {nullptr};
struct sigevent sig;
int status;