From: SooChan Lim Date: Fri, 10 Nov 2017 02:47:53 +0000 (+0900) Subject: check the null prarameters X-Git-Tag: accepted/tizen/unified/20171124.064515~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1b23004ab420f095e022d0b49a0e1aa7f54121f;p=platform%2Fcore%2Fuifw%2Flibtbm.git check the null prarameters check the null parameters at tbm_surface_internal_query_supported_formats Change-Id: I20e6f3b87d7fcbb37a627f89837f22cbd581d887 Signed-off-by: SooChan Lim --- diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index cf92797..8c356c1 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -418,6 +418,9 @@ int tbm_surface_internal_query_supported_formats(uint32_t **formats, uint32_t *num) { + TBM_RETURN_VAL_IF_FAIL(formats, 0); + TBM_RETURN_VAL_IF_FAIL(num, 0); + struct _tbm_bufmgr *mgr; int ret = 0; bool bufmgr_initialized = false;