mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 14:17:47 +00:00
[style] replace NULL with nullptr (#5109)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user