aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig/expr.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-02-03 00:58:15 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-02-19 18:20:41 +0900
commit6676c5bc15e66268c9c9669d5852aa779689c74e (patch)
tree94c53ce02df799a82ec7b76cfa4cb5315f4fd49f /scripts/kconfig/expr.h
parent8facc5f31954d5fddc2759de474eb6fae1135ced (diff)
kconfig: make file::name a flexible array member
Call malloc() just once to allocate needed memory. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/expr.h')
-rw-r--r--scripts/kconfig/expr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h
index 85e0d1ab3c8a..760b1e681b43 100644
--- a/scripts/kconfig/expr.h
+++ b/scripts/kconfig/expr.h
@@ -19,7 +19,7 @@ extern "C" {
struct file {
struct file *next;
- const char *name;
+ char name[];
};
typedef enum tristate {