From: Boram Park Date: Tue, 16 Feb 2016 07:18:57 +0000 (+0900) Subject: initiate info variable before filling X-Git-Tag: submit/tizen/20160306.224940~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b0f7d9cae4a072d79fb765e3c7a21da452a2da2;p=platform%2Fcore%2Fuifw%2Flibtbm.git initiate info variable before filling Change-Id: I2d572036a0972ee999c316971b92e04eeb4ef1a6 --- diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index f8d1b13..ada4e5d 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -832,6 +832,7 @@ int tbm_surface_internal_get_info(tbm_surface_h surface, int opt, tbm_surface_in surf = (struct _tbm_surface *)surface; + memset(info, 0x00, sizeof (tbm_surface_info_s)); info->width = surf->info.width; info->height = surf->info.height; info->format = surf->info.format;