From 1e06bb2726c1bdedbf5a962c2d81996358e3d186 Mon Sep 17 00:00:00 2001 From: "qiuyiuestc@gmail.com" Date: Tue, 11 Oct 2011 13:17:54 +0000 Subject: [PATCH] fix compile error git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1755 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/module.c | 7 ++----- 1 file 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; } -- GitLab