unify test - step 2

This commit is contained in:
iceman1001 committed 2025-03-25 10:17:42 +01:00
1 parent 875b3c44b4
commit ad292e8810
70 files changed
+272 -195

No files matched your search

+2 -2
View File
@@ -287,8 +287,8 @@ int flash_load(flash_file_t *ctx, bool force) {
}
ctx->elf = calloc(fsize + 1, sizeof(uint8_t));
if (!ctx->elf) {
PrintAndLogEx(ERR, "Error, cannot allocate memory");
if (ctx->elf == NULL) {
PrintAndLogEx(WARNING, "Failed to allocate memory");
res = PM3_EMALLOC;
fclose(fd);
goto fail;