4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 19:03:31 +08:00

add error handler in dlopen.c

This commit is contained in:
shaolin 2013-04-10 21:40:08 +08:00
parent 06c6630bbf
commit 83751c63e3

View File

@ -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);