forked from KolibriOS/kolibrios
Second call of dlerror should return NULL by the POSIX standard.
git-svn-id: svn://kolibrios.org@7851 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -85,5 +85,7 @@ int dlclose(void *handle) {
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/007908799/xsh/dlerror.html
|
||||
char *dlerror(void) {
|
||||
return strdup(__error);
|
||||
char *ret = __error ? strdup(__error) : NULL;
|
||||
__error = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user