From: Seungha Son Date: Thu, 28 Sep 2017 05:27:47 +0000 (+0900) Subject: Fix illegal accesses X-Git-Tag: accepted/tizen/4.0/unified/20171010.163103~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82d5d59411777587ac59f69e5d49492acede431a;p=platform%2Fcore%2Fappfw%2Flibrua.git Fix illegal accesses Signed-off-by: Seungha Son Change-Id: Ib278102cdd1821a993e7e8c14b0a007b0159951d --- diff --git a/src/rua.c b/src/rua.c index ff921b6..1fbab49 100644 --- a/src/rua.c +++ b/src/rua.c @@ -229,10 +229,11 @@ API int rua_history_get_rec(struct rua_rec *rec, char **table, int nrows, int nc db_result = table + ((row + 1) * ncols); tmp = db_result[RUA_COL_PKGNAME]; - if (tmp) + if (tmp) { rec->pkg_name = tmp; + LOGI("get rec pkg_name %s", rec->pkg_name); + } - LOGI("get rec pkg_name %s", rec->pkg_name); tmp = db_result[RUA_COL_APPPATH]; if (tmp) rec->app_path = tmp;