kconfig: fix return value of do_error_if()
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 19 Dec 2020 18:18:42 +0000 (03:18 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 5 Feb 2021 11:04:09 +0000 (12:04 +0100)
commit0cdadf2ba711b68b80be400673acb9fe6ab1c650
tree9d49243aa76713015581f3a7d088bc274cc36d5c
parentde4dec179b90be2dba23832366bb1ecbdd72dcde
kconfig: fix return value of do_error_if()

$(error-if,...) is expanded to an empty string. Currently, it relies on
eval_clause() returning xstrdup("") when all attempts for expansion fail,
but the correct implementation is to make do_error_if() return xstrdup("").

Fixes: 1d6272e6fe43 ("kconfig: add 'info', 'warning-if', and 'error-if' built-in functions")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/preprocess.c