Masahiro Yamada ca6279d1a1 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:24 -04:00
..
2021-05-22 11:38:30 +02:00
2021-05-22 11:38:30 +02:00
2019-08-12 15:00:37 -06:00
2019-05-06 11:12:09 -07:00
2021-05-22 11:38:30 +02:00
2021-05-22 11:38:30 +02:00