Change-Id: I52dd35a4b458a8bab692833978a4479fa7c5b196
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
{
DIR *dirp = NULL;
struct dirent *dir_ent = NULL;
- struct dirent entry;
char plugin_path[MAX_PATH] = {0, };
void* handle = NULL;
bool (*plugin_init)() = NULL;
return;
}
- while ((!readdir_r(dirp, &entry, &dir_ent)) && dir_ent)
+ while ((dir_ent = readdir(dirp)) != NULL)
{
snprintf(plugin_path, sizeof(plugin_path), "%s/%s", EMULD_PLUGIN_DIR, dir_ent->d_name);