kconfig: Fix realloc usage()
Michal Marek [Thu, 30 Sep 2010 20:21:12 +0000 (22:21 +0200)]
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>

scripts/kconfig/symbol.c

index dc5dcf2..c0efe10 100644 (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);