Skip to content
Snippets Groups Projects
Commit 229d0cfa authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 6988f70c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment