diff --git a/interfaces/innerkits/modulemgr/modulemgr.c b/interfaces/innerkits/modulemgr/modulemgr.c index ee2d6da6b336c75f146d412a4cc48b1a39347866..4d4dc583ae8951a987dee68034235a248627197a 100644 --- a/interfaces/innerkits/modulemgr/modulemgr.c +++ b/interfaces/innerkits/modulemgr/modulemgr.c @@ -116,7 +116,7 @@ static void *ModuleInstall(MODULE_ITEM *module, int argc, const char *argv[]) } } BEGET_LOGV("Module install path %s", path); - const char *realPath = GetRealPath(path); + char *realPath = GetRealPath(path); BEGET_ERROR_CHECK(realPath != NULL, return NULL, "Failed to get real path"); currentInstallArgs = &(module->moduleMgr->installArgs); handle = dlopen(realPath, RTLD_LAZY | RTLD_GLOBAL);