summaryrefslogtreecommitdiff
path: root/components/libdl
diff options
context:
space:
mode:
authoryiyue.fang <[email protected]>2013-04-10 21:51:16 +0800
committeryiyue.fang <[email protected]>2013-04-10 21:51:16 +0800
commit8185f9888d7a6fac14cd74681d2f864fc837c39e (patch)
tree2bbf30dad09e233e768a000682b7e756854d42de /components/libdl
parentda597730d1485f2d7f614fe2b52e5a0c476f271a (diff)
parentf91fc2dbe270b647e3e7065e8001d7f7db79e787 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/libdl')
-rw-r--r--components/libdl/dlopen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/libdl/dlopen.c b/components/libdl/dlopen.c
index 8271d2fd4e..5e063eed96 100644
--- a/components/libdl/dlopen.c
+++ b/components/libdl/dlopen.c
@@ -35,7 +35,12 @@ void* dlopen(const char *filename, int flags)
rt_snprintf(fullpath, strlen(def_path) + strlen(filename) + 2,
"%s/%s", def_path, filename);
}
-
+ else
+ {
+ rt_kprintf("use absolute path\n");
+ return RT_NULL;
+ }
+
/* find in module list */
module = rt_module_find(fullpath);