diff options
author | Patrick Gauvin <gauvin@hcs.ufl.edu> | 2016-06-26 12:43:25 -0400 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-02-08 14:21:13 +1100 |
commit | a2a9751823d506ccd9cd4264fd2e97032d306cb5 (patch) | |
tree | e3067477cc1d8166f11a846a01b9b3f8acb9ea6a /cpukit/libdl/dlfcn.c | |
parent | testsuites/libtest: Set EXENT to .exe so executable are correctly named. (diff) | |
download | rtems-a2a9751823d506ccd9cd4264fd2e97032d306cb5.tar.bz2 |
libdl: Clear error between dlerror invocations
Updates #2747
Diffstat (limited to 'cpukit/libdl/dlfcn.c')
-rw-r--r-- | cpukit/libdl/dlfcn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libdl/dlfcn.c b/cpukit/libdl/dlfcn.c index 3b31bb2e8e..4277caf757 100644 --- a/cpukit/libdl/dlfcn.c +++ b/cpukit/libdl/dlfcn.c @@ -18,6 +18,7 @@ #include <stdint.h> #include <dlfcn.h> #include <rtems/rtl/rtl.h> +#include "rtl-error.h" static rtems_rtl_obj_t* dl_get_obj_from_handle (void* handle) @@ -130,6 +131,7 @@ dlerror (void) { static char msg[64]; rtems_rtl_get_error (msg, sizeof (msg)); + rtems_rtl_clear_error (); return msg; } |