summaryrefslogtreecommitdiff
path: root/content/handlers/image/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/image/bmp.c')
-rw-r--r--content/handlers/image/bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/image/bmp.c b/content/handlers/image/bmp.c
index 3fec2cc75..7139d86b4 100644
--- a/content/handlers/image/bmp.c
+++ b/content/handlers/image/bmp.c
@@ -77,7 +77,7 @@ static nserror nsbmp_create_bmp_data(nsbmp_content *bmp)
.bitmap_get_buffer = guit->bitmap->get_buffer,
};
- bmp->bmp = calloc(sizeof(struct bmp_image), 1);
+ bmp->bmp = calloc(1, sizeof(struct bmp_image));
if (bmp->bmp == NULL) {
content_broadcast_error(&bmp->base, NSERROR_NOMEM, NULL);
return NSERROR_NOMEM;