summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-06-28 15:57:41 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-06-28 15:57:41 -0500
commit761b89b7411e0af56ea7fbd76c598c33d15e487f (patch)
tree35888c708303ec4a7e326672166debf715a9bb4e
parentee33978dc33df995bda44a95bc3acc40cc715d05 (diff)
ecore_drm: Don't pass uninit garbage to drm ioctls
Hasn't actually caused us any problems so far, but valgrind whines about it, so fixing anyway.
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 4b6b9a57a2..58ad911a72 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -4,8 +4,8 @@ static Eina_Bool
4_fb2_create(Ecore_Drm2_Fb *fb) 4_fb2_create(Ecore_Drm2_Fb *fb)
5{ 5{
6 struct drm_mode_fb_cmd2 cmd; 6 struct drm_mode_fb_cmd2 cmd;
7 uint32_t hdls[4], pitches[4], offsets[4]; 7 uint32_t hdls[4] = { 0 }, pitches[4] = { 0 }, offsets[4] = { 0 };
8 uint64_t modifiers[4]; 8 uint64_t modifiers[4] = { 0 };
9 9
10 hdls[0] = fb->hdl; 10 hdls[0] = fb->hdl;
11 pitches[0] = fb->stride; 11 pitches[0] = fb->stride;