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

@ -91,7 +91,7 @@ STREAM* sopen_multi_write(unsigned count, int flags)
STREAM* s = malloc_nofail(sizeof(STREAM));
s->handle_size = count;
s->handle = malloc_nofail(count * sizeof(struct stream_handle));
s->handle = nalloc_nofail(count, sizeof(struct stream_handle));
s->flags = flags;
for (i = 0; i < count; ++i)