summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/module.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/module.c b/src/module.c
index 71b80c1b8a..7a15b82898 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;
}