incorrectStringBooleanError CPPCheck warnings fix on W27

This commit is contained in:
Vaibhav Shrivastava
2023-07-12 17:43:05 +05:30
parent cf387a48ec
commit ae751e13ca
7 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -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;