summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoyub Lee <hoyub.lee@samsung.com>2017-09-11 19:16:32 +0900
committerXuelian Bai <xuelian.bai@samsung.com>2019-04-08 22:41:46 +0800
commit117ea0a7676898c0c5fea3a73000abb689287e98 (patch)
tree2ec9bab6e6dc0b7c23189835c5ff9cf7740e2ccd
parenta8f81f8f9382445f072c616e77ce0da72c028480 (diff)
downloadmesa-117ea0a7676898c0c5fea3a73000abb689287e98.tar.gz
mesa-117ea0a7676898c0c5fea3a73000abb689287e98.tar.bz2
mesa-117ea0a7676898c0c5fea3a73000abb689287e98.zip
egl/tizen: Initialize arrays which may be used in uninitialized
Change-Id: I48605aea5a644c6acbb37428065ecc803d34ac1e Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
-rw-r--r--src/egl/drivers/dri2/platform_tizen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
index 39ec926fd5e..d9593bcca6c 100644
--- a/src/egl/drivers/dri2/platform_tizen.c
+++ b/src/egl/drivers/dri2/platform_tizen.c
@@ -700,9 +700,9 @@ tizen_create_image_from_prime_fd_yuv(_EGLDisplay *disp, _EGLContext *ctx,
int num_planes;
int i;
int fourcc;
- size_t offsets[3];
- size_t pitches[3];
- int fds[3];
+ size_t offsets[3] = {0, 0, 0};
+ size_t pitches[3] = {0, 0, 0};
+ int fds[3] = {-1, -1, -1};
if (tbm_surface_get_info(tbm_surface, &surf_info) != TBM_SURFACE_ERROR_NONE) {
_eglLog(_EGL_WARNING, "Could not get tbm_surface_info");