- Uninitialized scalar variable
- Dereference null return value
Change-Id: I67d21a9aa7cf2926c9bfd1d484eb5d5e7bdbbc65
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
}
} else {
free(filename);
- _W("same pkg exists, remove legacy file (%s)", file_path);
ret = snprintf(file_path, sizeof(file_path), "%s/%s", mmc_path, pkgid);
if (ret < 0 || ret > sizeof(file_path)) {
return APP2EXT_ERROR_PKG_EXISTS;
}
+ _W("same pkg exists, remove legacy file (%s)", file_path);
ret = remove(file_path);
if (ret < 0)
_E("failed to remove, errno(%d)", errno);
int (*dl_main)(int, char**);
handle_ = dlopen("../plugin/app2sd/app2sd-server", RTLD_LOCAL | RTLD_LAZY);
dl_main = reinterpret_cast<int (*)(int, char**)>(dlsym(handle_, "main"));
+ ASSERT_NE(dl_main, nullptr);
dl_main(0, nullptr);
}