summaryrefslogtreecommitdiff
path: root/tal-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'tal-debug.c')
-rw-r--r--tal-debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tal-debug.c b/tal-debug.c
index 99fedb10e..3606cf574 100644
--- a/tal-debug.c
+++ b/tal-debug.c
@@ -76,6 +76,8 @@ __gmp_tmp_debug_alloc (const char *file, int line,
struct tmp_debug_t *mark = *markp;
struct tmp_debug_entry_t *p;
+ ASSERT_ALWAYS (size >= 1);
+
if (mark == NULL)
{
__gmp_assert_header (file, line);