initiate info variable before filling 14/59514/2
authorBoram Park <boram1288.park@samsung.com>
Tue, 16 Feb 2016 07:18:57 +0000 (16:18 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 16 Feb 2016 07:19:34 +0000 (16:19 +0900)
Change-Id: I2d572036a0972ee999c316971b92e04eeb4ef1a6

src/tbm_surface_internal.c

index f8d1b13ace6672bc34ce908ed0f05c1628212aec..ada4e5d67c113455ff53958a6f2b42b46e078ada 100644 (file)
@@ -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;