diff --git a/tools/kconfig2html.c b/tools/kconfig2html.c index 9c973718a29db..001d9b96eddb9 100644 --- a/tools/kconfig2html.c +++ b/tools/kconfig2html.c @@ -702,6 +702,14 @@ 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; + return g_line; + } + /* Does this continue on the next line? Note that this check * could erroneoulsy combine two lines if a comment line ends with * a line continuation... Don't do that!