-
- Downloads
kconfig: remove 'const' from the return type of sym_escape_string_value()
sym_escape_string_value() returns a malloc'ed memory, but as
(const char *). So, it must be casted to (void *) when it is free'd.
This is odd.
The return type of sym_escape_string_value() should be (char *).
I exploited that free(NULL) has no effect.
Signed-off-by:
Masahiro Yamada <masahiroy@kernel.org>
Showing
- scripts/kconfig/conf.c 7 additions, 8 deletionsscripts/kconfig/conf.c
- scripts/kconfig/confdata.c 14 additions, 13 deletionsscripts/kconfig/confdata.c
- scripts/kconfig/lkc_proto.h 1 addition, 1 deletionscripts/kconfig/lkc_proto.h
- scripts/kconfig/symbol.c 2 additions, 1 deletionscripts/kconfig/symbol.c
Loading
Please register or sign in to comment