Masahiro Yamada 87ddba29e7 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:22:02 -04:00
..
2023-12-13 18:27:02 +01:00
2021-05-22 11:40:55 +02:00
2021-04-28 13:40:02 +02:00
2020-10-22 13:13:57 -07:00
2021-05-22 11:40:55 +02:00
2021-05-22 11:40:55 +02:00