Introduce nalloc_nofail

This commit is contained in:
Andrea Mazzoleni 2026-07-06 18:38:50 +02:00
parent b297cbfa9b
commit db3f5af65a
12 changed files with 43 additions and 39 deletions

View file

@ -33,7 +33,7 @@ struct snapraid_hash* hash_alloc(struct snapraid_state* state, struct snapraid_d
hash->disk = disk;
hash->file = file;
buf = malloc_nofail(file->blockmax * hash_size);
buf = nalloc_nofail(file->blockmax, hash_size);
/* set the back pointer */
for (i = 0; i < file->blockmax; ++i) {