Skip to content

Commit

Permalink
Integrate nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Menne authored and Benedikt Menne committed May 24, 2024
1 parent a59ea93 commit a0adadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion headers/fmi3LsBusUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand Down

0 comments on commit a0adadf

Please sign in to comment.