nullptr改为NULL

Signed-off-by: xangjm <xiangjiaming2@huawei.com>
This commit is contained in:
xangjm 2022-03-14 17:28:18 +08:00
parent 9c42121c7d
commit e6d715af89

View File

@ -246,7 +246,7 @@ int main(int argc, char *argv[])
printf("Process pid %d, Test start %d thread, malloc %d size\n", pid, threadNum, mallocSize);
pthread_t* thrArray = (pthread_t*)malloc(sizeof(pthread_t) * threadNum);
if (thrArray == nullptr) {
if (thrArray == NULL) {
printf("new thread failed.\n");
}
int idx;