From 3b0f7d9cae4a072d79fb765e3c7a21da452a2da2 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Tue, 16 Feb 2016 16:18:57 +0900 Subject: [PATCH] initiate info variable before filling Change-Id: I2d572036a0972ee999c316971b92e04eeb4ef1a6 --- src/tbm_surface_internal.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.34.1