fix compile error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1755 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc@gmail.com 2011-10-11 13:17:54 +00:00
parent f9a41a9686
commit 1e06bb2726
1 changed files with 2 additions and 5 deletions

View File

@ -815,7 +815,7 @@ rt_module_t rt_module_open(const char *path)
int fd, length;
struct rt_module *module;
struct stat s;
char *buffer, *offset_ptr, *name;
char *buffer, *offset_ptr;
RT_DEBUG_NOT_IN_INTERRUPT;
@ -862,11 +862,8 @@ rt_module_t rt_module_open(const char *path)
return RT_NULL;
}
//name = _strip_name(path);
name = (char *)path;
module = rt_module_load(name, (void *)buffer);
module = rt_module_load(path, (void *)buffer);
rt_free(buffer);
//rt_free(name);
return module;
}