diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-03 00:58:15 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-19 18:20:41 +0900 |
commit | 6676c5bc15e66268c9c9669d5852aa779689c74e (patch) | |
tree | 94c53ce02df799a82ec7b76cfa4cb5315f4fd49f /scripts/kconfig/expr.h | |
parent | 8facc5f31954d5fddc2759de474eb6fae1135ced (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.h | 2 |
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 { |