From 9094795bbafa2ef44cccf009c3ea0f4e28f5e30b Mon Sep 17 00:00:00 2001 From: Old-Ding <35417409+Old-Ding@users.noreply.github.com> Date: Sat, 18 Jul 2026 10:07:36 +0800 Subject: [PATCH] tools: kconfig2html: Explain blank-line guard Explain why the guard runs before checking for a continuation marker. Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com> --- tools/kconfig2html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/kconfig2html.c b/tools/kconfig2html.c index 1ec003ef505..001d9b96edd 100644 --- a/tools/kconfig2html.c +++ b/tools/kconfig2html.c @@ -702,6 +702,8 @@ static char *read_line(FILE *stream) g_line[len] = '\0'; } + /* A blank line has no continuation marker to inspect. */ + if (len == 0) { g_lnptr = g_line;