aboutsummaryrefslogtreecommitdiff
path: root/dlfcn.c
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn.c')
-rw-r--r--dlfcn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dlfcn.c b/dlfcn.c
index 4367bd7..a91e963 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -431,6 +431,12 @@ end:
431char *dlerror( void ) 431char *dlerror( void )
432{ 432{
433 char *error_pointer = dlerror_buffer; 433 char *error_pointer = dlerror_buffer;
434
435 /* If this is the second consecutive call to dlerror, return NULL */
436 if (current_error == NULL)
437 {
438 return NULL;
439 }
434 440
435#ifdef UNICODE 441#ifdef UNICODE
436 errno_t err = 0; 442 errno_t err = 0;