fix compile error
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1755 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
f9a41a9686
commit
1e06bb2726
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue