aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-03 05:29:20 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-03 05:29:20 +0200
commit9122a9d8aaa706dec7a055f7cdc3e584cb3db912 (patch)
tree70e0d52db9158e762aefd50addc2dc9dc36939fa /src/lib
parenttest: m + select crtc (diff)
downloadlibgamma-9122a9d8aaa706dec7a055f7cdc3e584cb3db912.tar.gz
libgamma-9122a9d8aaa706dec7a055f7cdc3e584cb3db912.tar.bz2
libgamma-9122a9d8aaa706dec7a055f7cdc3e584cb3db912.tar.xz
gamma-linux-drm: fix partition init bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/lib/gamma-linux-drm.c3
1 files changed, 3 insertions, 0 deletions
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);