MCPcopy Create free account
hub / github.com/ElementsProject/lightning / null_alloc_failed

Function null_alloc_failed

ccan/ccan/tal/tal.c:477–484  ·  view source on GitHub ↗

Don't have compiler complain we're returning NULL if we promised not to! */

Source from the content-addressed store, hash-verified

475
476/* Don't have compiler complain we're returning NULL if we promised not to! */
477static void *null_alloc_failed(void)
478{
479#ifdef CCAN_TAL_NEVER_RETURN_NULL
480 abort();
481#else
482 return NULL;
483#endif /* CCAN_TAL_NEVER_RETURN_NULL */
484}
485
486void *tal_alloc_(const tal_t *ctx, size_t size, bool clear, const char *label)
487{

Callers 2

tal_alloc_Function · 0.85
tal_alloc_arr_Function · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected