[style] replace NULL with nullptr (#5109)

This commit is contained in:
Jonathan Hui
2020-06-17 22:44:54 -07:00
committed by GitHub
parent 3b362071e5
commit 1326d64a64
209 changed files with 1981 additions and 1906 deletions
+4 -4
View File
@@ -47,8 +47,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
const otPanId panId = 0xdead;
otInstance *instance = NULL;
uint8_t * buf = NULL;
otInstance *instance = nullptr;
uint8_t * buf = nullptr;
VerifyOrExit(size <= 65536, OT_NOOP);
@@ -81,12 +81,12 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
exit:
if (buf != NULL)
if (buf != nullptr)
{
free(buf);
}
if (instance != NULL)
if (instance != nullptr)
{
otInstanceFinalize(instance);
}