kconfig: fix return value of do_error_if()
PATCH 1/1 kconfig: fix return value of do_error_if()
Kconfig expands a macro to a string. $(error-if,...) should be expanded to an empty string, not NULL.
Fixes 1d6272e6fe43 ("kconfig: add 'info', 'warning-if', and 'error-if' built-in functions")
Signed-off-by Masahiro Yamada <[email protected]>
---
scripts/kconfig/preprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/kconfig/preprocess.c +1 -1
@@ -114,7 +114,7 @@ static char *do_error_if(int argc, char *argv[])if (!strcmp (argv[0 ],"y" ))pperror ("%s" , argv[1 ]); -return NULL ; +return xstrdup ("" ); }static char *do_filename (int argc,char *argv[])
Signature · 1 line
2.27.0