summaryrefslogtreecommitdiffstats
path: root/fmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fmap.c')
-rw-r--r--fmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fmap.c b/fmap.c
index 2f34a5ccf..b18cbf799 100644
--- a/fmap.c
+++ b/fmap.c
@@ -195,7 +195,7 @@ static int fmap_bsearch_rom(struct fmap **fmap_out, struct flashctx *const flash
if (prepare_flash_access(flashctx, true, false, false, false))
return 1;
- fmap = malloc(sizeof(struct fmap));
+ fmap = malloc(sizeof(*fmap));
if (!fmap) {
msg_gerr("Out of memory.\n");
goto _free_ret;