* dlfcn.cc (dlerror): Only report load errors once per error.

This commit is contained in:
Christopher Faylor 2003-02-01 05:00:15 +00:00
parent b0a82a859d
commit a5a93a62b2
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2003-01-31 Christopher Faylor <cgf@redhat.com>
* dlfcn.cc (dlerror): Only report load errors once per error.
2003-01-31 Christopher Faylor <cgf@redhat.com>
* fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting

View File

@ -144,8 +144,13 @@ dlclose (void *handle)
char *
dlerror ()
{
char *ret = 0;
if (_dl_error)
ret = _dl_buffer;
return ret;
char *res;
if (!_dl_error)
res = NULL;
else
{
_dl_error = 0;
res = _dl_buffer;
}
return res;
}