summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-06-16 16:12:21 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-06-16 20:11:51 +0200
commit5874daddc4976ba3756b6e37466a0205b2359048 (patch)
tree5b60d1fe2d4aab54894cde5b66153c841289cdc5
parent5f89d6f41fd5c4f6a1cd3b6da708b99a8efe8e64 (diff)
lib: ensure igt_display_init clears the memory for the display struct
Add the call to memset that was accidentally removed in: commit 1e9e1baba389fe498be12390ceeeacb1d141a5cf Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Thu Mar 13 17:20:05 2014 +0100 lib/igt_kms: rip out custom verbose loggin support Instead just piggy-pack on top of igt_log. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--lib/igt_kms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index d00250da..c0f4f6c5 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -487,6 +487,8 @@ void igt_display_init(igt_display_t *display, int drm_fd)
drmModePlaneRes *plane_resources;
int i;
+ memset(display, 0, sizeof(igt_display_t));
+
LOG_INDENT(display, "init");
display->drm_fd = drm_fd;