incorrectStringBooleanError CPPCheck warnings fix on W27
This commit is contained in:
@@ -28,7 +28,7 @@ byte_array_t copy_byte_array(byte_array_t src)
|
||||
{
|
||||
byte_array_t dst = {0};
|
||||
dst.buf = malloc(src.len);
|
||||
DevAssert(dst.buf != NULL && "Memory exhausted");
|
||||
AssertFatal(dst.buf != NULL, "Memory exhausted");
|
||||
memcpy(dst.buf, src.buf, src.len);
|
||||
dst.len = src.len;
|
||||
return dst;
|
||||
|
||||
Reference in New Issue
Block a user