diff --git a/src/module.c b/src/module.c index 71b80c1b8a0601276a36d0544060e01d939e9337..7a15b82898fe4629f8acf3dbccd9062d60e42eb0 100644 --- a/src/module.c +++ b/src/module.c @@ -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; }