diff --git a/lib/tst_kconfig.c b/lib/tst_kconfig.c index d96a8f5439e..e83de3dcd37 100644 --- a/lib/tst_kconfig.c +++ b/lib/tst_kconfig.c @@ -655,6 +655,10 @@ static struct tst_kconfig_var slow_kconfigs[] = { int tst_has_slow_kconfig(void) { unsigned int i; + char path_buf[1024]; + + if (!kconfig_path(path_buf, sizeof(path_buf))) + return 0; tst_kconfig_read(slow_kconfigs, ARRAY_SIZE(slow_kconfigs));