From ab77fe1027b6acea1bf486c0cee1318918885bb0 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 1 Sep 2016 16:28:52 +0900 Subject: [PATCH] Add an exception handling about getting shared data path Change-Id: I3dbb1c8e5a5b327eafaa57faaa7aca5d69f9a5c9 Signed-off-by: Hwankyu Jhun --- src/aul_path.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aul_path.c b/src/aul_path.c index c76f5a3..9f629a8 100644 --- a/src/aul_path.c +++ b/src/aul_path.c @@ -323,6 +323,9 @@ API int aul_get_app_shared_data_path_by_appid(const char *appid, char **path) int ret; char *ret_path; + if (path == NULL) + return AUL_R_EINVAL; + ret = __get_path(&ret_path, appid, _SHARED_DATA_DIR, getuid()); if (ret != AUL_R_OK) return ret; -- 2.7.4