提交 1e06bb27 编写于 作者: qiuyiuestc's avatar qiuyiuestc

fix compile error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1755 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 f9a41a96
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册