chore(radio): cleanup -Wzero-as-null-pointer-constant warnings (#4851)

This commit is contained in:
ThomasKuehne
2024-04-15 09:31:46 +10:00
committed by GitHub
parent 05d869e988
commit 8225fb21c5
17 changed files with 37 additions and 37 deletions
+4 -4
View File
@@ -461,14 +461,14 @@ int cliTestSD(const char ** argv)
int cliTestNew()
{
char * tmp = 0;
char * tmp = nullptr;
cliSerialPrint("Allocating 1kB with new()");
RTOS_WAIT_MS(200);
tmp = new char[1024];
if (tmp) {
cliSerialPrint("\tsuccess");
delete[] tmp;
tmp = 0;
tmp = nullptr;
}
else {
cliSerialPrint("\tFAILURE");
@@ -480,7 +480,7 @@ int cliTestNew()
if (tmp) {
cliSerialPrint("\tFAILURE, tmp = %p", tmp);
delete[] tmp;
tmp = 0;
tmp = nullptr;
}
else {
cliSerialPrint("\tsuccess, allocaton failed, tmp = 0");
@@ -492,7 +492,7 @@ int cliTestNew()
if (tmp) {
cliSerialPrint("\tFAILURE, tmp = %p", tmp);
delete[] tmp;
tmp = 0;
tmp = nullptr;
}
else {
cliSerialPrint("\tsuccess, allocaton failed, tmp = 0");