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

index dc5dcf2189a01c33807b1593be13ff4c22c9745f..c0efe102d655c40547afe92014cec1c74b70b3c2 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);