diff options
| author | Masahiro Yamada <[email protected]> | 2024-02-02 15:58:15 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2024-02-19 09:20:41 +0000 |
| commit | 6676c5bc15e66268c9c9669d5852aa779689c74e (patch) | |
| tree | 94c53ce02df799a82ec7b76cfa4cb5315f4fd49f /scripts/kconfig/expr.h | |
| parent | kconfig: move the file and lineno in struct file to struct buffer (diff) | |
| download | kernel-6676c5bc15e66268c9c9669d5852aa779689c74e.tar.gz kernel-6676c5bc15e66268c9c9669d5852aa779689c74e.zip | |
kconfig: make file::name a flexible array member
Call malloc() just once to allocate needed memory.
Signed-off-by: Masahiro Yamada <[email protected]>
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 { |
