mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-15 17:40:06 +00:00
x86: Don't make 2 calls to dlerror () in a row
We shouldn't make 2 calls to dlerror () in a row since the first call will clear the error. We should just use the return value from the first call. Tested on Linux/x86-64. Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
parent
d8775136b5
commit
635d6fae03
@ -38,7 +38,7 @@ do_test_1 (const char *modname, bool fail)
|
||||
if (strstr (err, "shadow stack isn't enabled") == NULL)
|
||||
{
|
||||
printf ("incorrect dlopen '%s' error: %s\n", modname,
|
||||
dlerror ());
|
||||
err);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ do_test_1 (const char *modname, bool fail)
|
||||
if (strstr (err, "shadow stack isn't enabled") == NULL)
|
||||
{
|
||||
printf ("incorrect dlopen '%s' error: %s\n", modname,
|
||||
dlerror ());
|
||||
err);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user