mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
image handlers: Squash -Wcalloc-transposed-args (gcc-14)
This commit is contained in:
parent
0843a9b43d
commit
2bffbebad7
@ -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;
|
||||
|
@ -74,7 +74,7 @@ static nserror nsico_create_ico_data(nsico_content *c)
|
||||
.bitmap_get_buffer = guit->bitmap->get_buffer,
|
||||
};
|
||||
|
||||
c->ico = calloc(sizeof(ico_collection), 1);
|
||||
c->ico = calloc(1, sizeof(ico_collection));
|
||||
if (c->ico == NULL) {
|
||||
content_broadcast_error(&c->base, NSERROR_NOMEM, NULL);
|
||||
return NSERROR_NOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user