[Issue#] N/A
[Problem] Pointer set to NULL passed to dlsym.
[Cause] N/A
[Solution] Fixed.
[Verification] successful build, restart wrt-launchpad-deamon.
No logical difference in working of wrt-launchpad-deamon.
Change-Id: Ia0b834edd416a3751ea5042872f41299d1b95750
static inline void __preload_init(int argc, char **argv)
{
- void *handle = NULL;
char soname[MAX_LOCAL_BUFSZ] = { 0, };
FILE *preload_list;
int (*func)() = NULL;
if (func != NULL) {
_D("get pre-initialization function\n");
entry->dl_einit = func;
- func = dlsym(handle, EFL_SHUTDOWN_FUNC);
+ func = dlsym(entry->handle, EFL_SHUTDOWN_FUNC);
if (func != NULL) {
_D("get shutdown function\n");
entry->dl_efini = func;