summaryrefslogtreecommitdiff
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-10-01 00:21:12 +0400
committerMichal Marek <mmarek@suse.cz>2010-10-01 00:26:39 +0400
commit19c29f326075e2c66e34d98f2a0cf22901b2d8e9 (patch)
tree5c5d839f0f11b1dadbd3308fa4be52f9d140bca4 /scripts/kconfig
parenta01ebe154c03f6ad58a1ec1bda616032bfe232e0 (diff)
downloadlinux-19c29f326075e2c66e34d98f2a0cf22901b2d8e9.tar.xz
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/kconfig')
-rw-r--r--scripts/kconfig/symbol.c2
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);