diff options
-rw-r--r-- | scripts/kconfig/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index dc5dcf2189a0..c0efe102d655 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c | |||
@@ -878,7 +878,7 @@ const char *sym_expand_string_value(const char *in) | |||
878 | newlen = strlen(res) + strlen(symval) + strlen(src); | 878 | newlen = strlen(res) + strlen(symval) + strlen(src); |
879 | if (newlen > reslen) { | 879 | if (newlen > reslen) { |
880 | reslen = newlen; | 880 | reslen = newlen; |
881 | realloc(res, reslen); | 881 | res = realloc(res, reslen); |
882 | } | 882 | } |
883 | 883 | ||
884 | strcat(res, symval); | 884 | strcat(res, symval); |