kconfig: Fix realloc usage()

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
Michal Marek 2010-09-30 22:21:12 +02:00
parent a01ebe154c
commit 19c29f3260

View File

@ -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);