mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 02:50:25 +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>
|
||||
|
||||
* fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user