From: Junkyeong Kim Date: Wed, 19 Feb 2020 08:03:49 +0000 (+0900) Subject: tdm: execute memset before getting pp capability X-Git-Tag: accepted/tizen/5.5/unified/20200221.094148~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=6ed335288f427aec9eadd15e970b3cdd47060d4a;p=platform%2Fcore%2Fuifw%2Flibtdm.git tdm: execute memset before getting pp capability Change-Id: Ia4d298a3d0d3d978badce79300ee7420699f13a6 Signed-off-by: Junkyeong Kim --- diff --git a/src/tdm.c b/src/tdm.c index c7289e8..ad98191 100644 --- a/src/tdm.c +++ b/src/tdm.c @@ -404,6 +404,8 @@ _tdm_display_update_caps_pp(tdm_private_module *private_module, tdm_caps_pp *cap return TDM_ERROR_BAD_MODULE; } + memset(caps, 0, sizeof(tdm_caps_pp)); + ret = func_display->display_get_pp_capability(private_module->bdata, caps); if (ret != TDM_ERROR_NONE) { TDM_ERR("backend(%s) display_get_pp_capability() failed", private_module->module_data->name);