summaryrefslogtreecommitdiff
path: root/libweston
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-07-08 12:50:57 -0500
committerQuentin Glidic <sardemff7+git@sardemff7.net>2016-08-15 17:35:42 +0200
commit482ffdf0064113f96aa09646fc21fc5109fc8b75 (patch)
tree70522c38b5733e9eb369d444a5b272c3482a9d13 /libweston
parentb40b827f83c476c52c1478f16b37db9facf905e3 (diff)
compositor-drm: Stop sending uninit data to the kernel
Valgrind noticed that we send uninit data to drmModeAddFB2. While the kernel should never read this (because of the plane format), it's probably still nicer to zero the data before we send it. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
Diffstat (limited to 'libweston')
-rw-r--r--libweston/compositor-drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 5c9bfd91..4825b466 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -394,7 +394,7 @@ drm_fb_get_from_bo(struct gbm_bo *bo,
{
struct drm_fb *fb = gbm_bo_get_user_data(bo);
uint32_t width, height;
- uint32_t handles[4], pitches[4], offsets[4];
+ uint32_t handles[4] = { 0 }, pitches[4] = { 0 }, offsets[4] = { 0 };
int ret;
if (fb)