From 9122a9d8aaa706dec7a055f7cdc3e584cb3db912 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jun 2014 05:29:20 +0200 Subject: gamma-linux-drm: fix partition init bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/gamma-linux-drm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib') diff --git a/src/lib/gamma-linux-drm.c b/src/lib/gamma-linux-drm.c index 9d83038..5f66cdf 100644 --- a/src/lib/gamma-linux-drm.c +++ b/src/lib/gamma-linux-drm.c @@ -285,6 +285,8 @@ int libgamma_linux_drm_partition_initialise(libgamma_partition_state_t* restrict return LIBGAMMA_ERRNO_SET; data->fd = -1; data->res = NULL; + data->encoders = NULL; + data->connectors = NULL; /* Get the pathname for the graphics card. */ snprintf(pathname, sizeof(pathname) / sizeof(char), @@ -313,6 +315,7 @@ int libgamma_linux_drm_partition_initialise(libgamma_partition_state_t* restrict goto fail_res; } this->crtcs_available = (size_t)(data->res->count_crtcs); + this->data = data; return 0; fail_res: drmModeFreeResources(data->res); -- cgit v1.2.3-70-g09d2