Browse Source

kconfig: Fix realloc usage()

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Michal Marek 14 years ago
parent
commit
19c29f3260
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/kconfig/symbol.c

+ 1 - 1
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);