From f36fab3c7b730e0226cf91f040bfc58e61cb4825 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 15 Oct 2025 13:20:11 +0200 Subject: sanity checks --- lex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lex.c') diff --git a/lex.c b/lex.c index 2daa0bc..52cd9b8 100644 --- a/lex.c +++ b/lex.c @@ -647,6 +647,7 @@ putmac(struct macro *mac) uint h, i, n = arraylength(macroht); struct macro *slot; + assert(mac->name); i = h = ptrhash(mac->name); for (;; ++i) { i &= arraylength(macroht) - 1; -- cgit v1.2.3