From: SooChan Lim Date: Fri, 18 Jun 2021 01:30:21 +0000 (+0900) Subject: tbm_module: initialize the bo_handle to be null. X-Git-Tag: submit/tizen/20210618.025159~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7487dd89a0a156ae26e38be334b75d766328cd08;p=platform%2Fcore%2Fuifw%2Flibtbm.git tbm_module: initialize the bo_handle to be null. Change-Id: Iaff9f5ecec556bdf611cd44c5a013ad800923948 --- diff --git a/src/tbm_module.c b/src/tbm_module.c index 9932c45..9be2702 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -940,7 +940,7 @@ tbm_module_bo_get_handle(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_ { tbm_backend_bo_func *bo_func = NULL; tbm_bufmgr_backend backend = NULL; - tbm_bo_handle bo_handle; + tbm_bo_handle bo_handle = (tbm_bo_handle)NULL; hal_tbm_bo_handle hbo_handle; TBM_RETURN_VAL_SET_ERR_IF_FAIL(module, (tbm_bo_handle)NULL, *error, TBM_ERROR_INVALID_PARAMETER); @@ -987,7 +987,7 @@ tbm_module_bo_map(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, i { tbm_backend_bo_func *bo_func = NULL; tbm_bufmgr_backend backend = NULL; - tbm_bo_handle bo_handle; + tbm_bo_handle bo_handle = (tbm_bo_handle)NULL; hal_tbm_bo_handle hbo_handle; TBM_RETURN_VAL_SET_ERR_IF_FAIL(module, (tbm_bo_handle)NULL, *error, TBM_ERROR_INVALID_PARAMETER);