瀏覽代碼

kconfig: Fix realloc usage()

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Michal Marek 14 年之前
父節點
當前提交
19c29f3260
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);