mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
Add assertions in various places to ensure tal_fmt doesn't receive NULL as argument for strings.
This commit is contained in:
committed by
Christian Decker
parent
aba3d5f34d
commit
b857b2e843
@@ -53,6 +53,9 @@ const char *tmpctx_any(void)
|
||||
struct tmpctx *t = list_top(&tmpctxs, struct tmpctx, list);
|
||||
|
||||
if (t)
|
||||
{
|
||||
assert(t->file != NULL);
|
||||
return tal_fmt(t, "%s:%u", t->file, t->line);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user