diff options
author | Michal Marek <mmarek@suse.cz> | 2010-09-30 22:21:12 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-09-30 22:26:39 +0200 |
commit | 19c29f326075e2c66e34d98f2a0cf22901b2d8e9 (patch) | |
tree | 5c5d839f0f11b1dadbd3308fa4be52f9d140bca4 /scripts | |
parent | a01ebe154c03f6ad58a1ec1bda616032bfe232e0 (diff) |
kconfig: Fix realloc usage()
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-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) newlen = strlen(res) + strlen(symval) + strlen(src); if (newlen > reslen) { reslen = newlen; - realloc(res, reslen); + res = realloc(res, reslen); } strcat(res, symval); |