]> Git Repo - linux.git/commitdiff
kconfig: Fix realloc usage()
authorMichal Marek <[email protected]>
Thu, 30 Sep 2010 20:21:12 +0000 (22:21 +0200)
committerMichal Marek <[email protected]>
Thu, 30 Sep 2010 20:26:39 +0000 (22:26 +0200)
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
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);
This page took 0.053259 seconds and 4 git commands to generate.