mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-31 03:20:28 +08:00
* dlfcn.cc (dlerror): Only report load errors once per error.
This commit is contained in:
parent
b0a82a859d
commit
a5a93a62b2
@ -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>
|
2003-01-31 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting
|
* fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting
|
||||||
|
@ -144,8 +144,13 @@ dlclose (void *handle)
|
|||||||
char *
|
char *
|
||||||
dlerror ()
|
dlerror ()
|
||||||
{
|
{
|
||||||
char *ret = 0;
|
char *res;
|
||||||
if (_dl_error)
|
if (!_dl_error)
|
||||||
ret = _dl_buffer;
|
res = NULL;
|
||||||
return ret;
|
else
|
||||||
|
{
|
||||||
|
_dl_error = 0;
|
||||||
|
res = _dl_buffer;
|
||||||
|
}
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user