diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 19:16:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 19:16:39 -0400 |
commit | 51399a391940e676877c7a791138081f13a0bab7 (patch) | |
tree | 6caefb858ee4b31172b85ec7bcedb826a29a551b /scripts/kconfig/util.c | |
parent | b779b332d0e1ef68f40867948ae5526a3e925163 (diff) | |
parent | df4d303647ebe5e2f7e473e32ccef9f8549e9d45 (diff) |
Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: (38 commits)
kbuild: convert `arch/tile' to the kconfig mainmenu upgrade
README: cite nconfig
Revert "kconfig: Temporarily disable dependency warnings"
kconfig: Use PATH_MAX instead of 128 for path buffer sizes.
kconfig: Fix realloc usage()
kconfig: Propagate const
kconfig: Don't go out from read config loop when you read new symbol
kconfig: fix menuconfig on debian lenny
kbuild: migrate all arch to the kconfig mainmenu upgrade
kconfig: expand file names
kconfig: use the file's name of sourced file
kconfig: constify file name
kconfig: don't emit warning upon rootmenu's prompt redefinition
kconfig: replace KERNELVERSION usage by the mainmenu's prompt
kconfig: delay gconf window initialization
kconfig: expand by default the rootmenu's prompt
kconfig: add a symbol string expansion helper
kconfig: regen parser
kconfig: implement the `mainmenu' directive
kconfig: allow PACKAGE to be defined on the compiler's command-line
...
Fix up trivial conflict in arch/mn10300/Kconfig
Diffstat (limited to 'scripts/kconfig/util.c')
-rw-r--r-- | scripts/kconfig/util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c index 78b5c04e736b..6330cc871a47 100644 --- a/scripts/kconfig/util.c +++ b/scripts/kconfig/util.c | |||
@@ -12,15 +12,18 @@ | |||
12 | struct file *file_lookup(const char *name) | 12 | struct file *file_lookup(const char *name) |
13 | { | 13 | { |
14 | struct file *file; | 14 | struct file *file; |
15 | const char *file_name = sym_expand_string_value(name); | ||
15 | 16 | ||
16 | for (file = file_list; file; file = file->next) { | 17 | for (file = file_list; file; file = file->next) { |
17 | if (!strcmp(name, file->name)) | 18 | if (!strcmp(name, file->name)) { |
19 | free((void *)file_name); | ||
18 | return file; | 20 | return file; |
21 | } | ||
19 | } | 22 | } |
20 | 23 | ||
21 | file = malloc(sizeof(*file)); | 24 | file = malloc(sizeof(*file)); |
22 | memset(file, 0, sizeof(*file)); | 25 | memset(file, 0, sizeof(*file)); |
23 | file->name = strdup(name); | 26 | file->name = file_name; |
24 | file->next = file_list; | 27 | file->next = file_list; |
25 | file_list = file; | 28 | file_list = file; |
26 | return file; | 29 | return file; |