Masahiro Yamada c609ce8b3c kconfig: fix infinite loop when expanding a macro at the end of file
[ Upstream commit af8bbce92044dc58e4cc039ab94ee5d470a621f5 ]

A macro placed at the end of a file with no newline causes an infinite
loop.

[Test Kconfig]
  $(info,hello)
  \ No newline at end of file

I realized that flex-provided input() returns 0 instead of EOF when it
reaches the end of a file.

Fixes: 104daea149c4 ("kconfig: reference environment variables directly and remove 'option env='")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:20:58 -04:00
..
2021-04-26 02:17:39 +09:00
2022-09-29 04:40:15 +09:00
2021-04-14 15:22:49 +09:00
2020-08-14 13:30:03 +09:00
2020-08-14 13:30:03 +09:00
2022-09-29 04:40:15 +09:00
2021-04-14 15:26:09 +09:00
2020-09-25 00:37:13 +09:00