fix undefined behavior in memset due to missing sequence points
[musl] / src / ldso / __dlsym.c
1 #include <dlfcn.h>
2 #include "libc.h"
3
4 __attribute__((__visibility__("hidden")))
5 void __dl_seterr(const char *, ...);
6
7 static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra)
8 {
9         __dl_seterr("Symbol not found: %s", s);
10         return 0;
11 }
12
13 weak_alias(stub_dlsym, __dlsym);