unify test - step 2
This commit is contained in:
1 parent
875b3c44b4
commit
ad292e8810
70 files changed
+272
-195
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user