diff options
Diffstat (limited to 'dlfcn.c')
-rw-r--r-- | dlfcn.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -431,6 +431,12 @@ end: | |||
431 | char *dlerror( void ) | 431 | char *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; |