summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2021-03-19 18:10:12 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2021-03-19 18:10:12 +0900
commit82cda79a512616503618d526ce5266d6b0a59296 (patch)
tree68cd352c06d095650859c55471bdb421eae5f1c3
parenteb76472f56603826a2830a15448b7e55247515ab (diff)
downloadui-gadget-1-tizen.tar.gz
ui-gadget-1-tizen.tar.bz2
ui-gadget-1-tizen.zip
Fix getting ug infoHEADtizen
- Removes unnecessary slash - Checks whether shared/res/lib<name>.so file exists or not Change-Id: If426400c201d562ea636709d137c9c7492682af4 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/module.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/module.c b/src/module.c
index 10450c2..b5d5306 100644
--- a/src/module.c
+++ b/src/module.c
@@ -184,10 +184,13 @@ static int __get_ug_info(const char *name, char **ug_file_path)
pkgmgrinfo_appinfo_destroy_appinfo(appinfo);
return -1;
}
- snprintf(ug_file, PATH_MAX, "%s/lib/ug/libug-%s.so", res_path, name);
+ snprintf(ug_file, PATH_MAX, "%slib/ug/libug-%s.so", res_path, name);
if (!__file_exist(ug_file))
goto out_func;
- snprintf(ug_file, PATH_MAX, "%s/lib/ug/lib-%s.so", res_path, name);
+ snprintf(ug_file, PATH_MAX, "%slib/ug/lib-%s.so", res_path, name);
+ if (!__file_exist(ug_file))
+ goto out_func;
+ snprintf(ug_file, PATH_MAX, "%slib/ug/lib%s.so", res_path, name);
if (!__file_exist(ug_file))
goto out_func;