aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-15 13:20:11 +0200
committerlemon <lsof@mailbox.org>2025-10-15 13:20:11 +0200
commitf36fab3c7b730e0226cf91f040bfc58e61cb4825 (patch)
tree393676bbac9a184fbfe87a36bf63964a01a5fef0 /lex.c
parent41483dda42f6eb2ce45b0f8580fc46eacf6390b8 (diff)
sanity checks
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c1
1 files changed, 1 insertions, 0 deletions
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;