mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 01:09:39 +03:00
content caches: Squash -Wcalloc-transposed-args (gcc-14)
This commit is contained in:
parent
2bffbebad7
commit
67005a0d7e
@ -826,7 +826,7 @@ nserror hlcache_handle_abort(hlcache_handle *handle)
|
||||
if (clone == NULL)
|
||||
return NSERROR_NOMEM;
|
||||
|
||||
entry = calloc(sizeof(struct hlcache_entry), 1);
|
||||
entry = calloc(1, sizeof(struct hlcache_entry));
|
||||
|
||||
if (entry == NULL) {
|
||||
content_destroy(clone);
|
||||
|
@ -3600,8 +3600,8 @@ llcache_object_snapshot(llcache_object *object, llcache_object **snapshot)
|
||||
}
|
||||
|
||||
if (object->num_headers > 0) {
|
||||
newobj->headers = calloc(sizeof(llcache_header),
|
||||
object->num_headers);
|
||||
newobj->headers = calloc(object->num_headers,
|
||||
sizeof(llcache_header));
|
||||
if (newobj->headers == NULL) {
|
||||
llcache_object_destroy(newobj);
|
||||
return NSERROR_NOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user