mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Pass back error code from dlerror_run
This commit is contained in:
@ -45,10 +45,10 @@ dlerror_run (void (*operate) (void *), void *args)
|
||||
const char *last_errstring = NULL;
|
||||
bool malloced;
|
||||
|
||||
(void) GLRO(dl_catch_error) (&objname, &last_errstring, &malloced,
|
||||
operate, args);
|
||||
int result = (GLRO(dl_catch_error) (&objname, &last_errstring, &malloced,
|
||||
operate, args)
|
||||
?: last_errstring != NULL);
|
||||
|
||||
int result = last_errstring != NULL;
|
||||
if (result && malloced)
|
||||
free ((char *) last_errstring);
|
||||
|
||||
|
Reference in New Issue
Block a user