From 46b618569a72c8ad68a8b34d2d385fb9610c4a83 Mon Sep 17 00:00:00 2001 From: Mark Atwood Date: Thu, 23 Jul 2026 11:36:27 -0700 Subject: [PATCH] fix: don't undercount leading-comma name-lists --- src/internal.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/internal.c b/src/internal.c index a5fa0ee3b..672e2c740 100644 --- a/src/internal.c +++ b/src/internal.c @@ -4312,10 +4312,6 @@ static word32 CountNameList(const byte* buf, word32 len) count++; } } - /* remove leading comma */ - if (count > 0 && buf[0] == ',') { - count--; - } /* remove trailing comma */ if (count > 0 && buf[len-1] == ',') { count--;