mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-09 10:50:08 +00:00
Fix aliasing violation in tst-rec-dlopen
This commit is contained in:
parent
eed3e1eb79
commit
04ae79a363
@ -1,3 +1,8 @@
|
|||||||
|
2015-12-15 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
|
||||||
|
aliasing violation.
|
||||||
|
|
||||||
2015-12-14 Joseph Myers <joseph@codesourcery.com>
|
2015-12-14 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #18472]
|
[BZ #18472]
|
||||||
|
@ -57,7 +57,7 @@ call_func (const char *dso_name, const char *func_name)
|
|||||||
dlerror ();
|
dlerror ();
|
||||||
|
|
||||||
/* Lookup func. */
|
/* Lookup func. */
|
||||||
*(void **) (&func) = dlsym (dso, func_name);
|
func = (int (*) (void)) dlsym (dso, func_name);
|
||||||
if (func == NULL)
|
if (func == NULL)
|
||||||
{
|
{
|
||||||
err = dlerror ();
|
err = dlerror ();
|
||||||
|
Loading…
Reference in New Issue
Block a user