From a0adadf32bc2eda44f533ffcbc889ab359259ca2 Mon Sep 17 00:00:00 2001 From: Benedikt Menne Date: Fri, 24 May 2024 14:11:55 +0200 Subject: [PATCH] Integrate nullptr check --- headers/fmi3LsBusUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/fmi3LsBusUtil.h b/headers/fmi3LsBusUtil.h index cfd10873..e5dda610 100644 --- a/headers/fmi3LsBusUtil.h +++ b/headers/fmi3LsBusUtil.h @@ -276,7 +276,7 @@ typedef struct { \ memcpy((BufferInfo)->writePos, &(Operation), (Operation).header.length - (DataLength)); \ (BufferInfo)->writePos += (Operation).header.length - (DataLength); \ - if ((DataLength) > 0 && NULL != (Data)) \ + if ((DataLength) > 0 && nullptr != (Data)) \ { \ memcpy((BufferInfo)->writePos, (Data), (DataLength)); \ (BufferInfo)->writePos += (DataLength); \