diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-07 21:19:32 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-07 21:53:46 +0100 |
commit | 1385ca9eeb26b0b82b623da619a65036830ccceb (patch) | |
tree | d98b5450dbf3af4d02932557d5e774d49a50b2de /src | |
parent | 7d516589ba9d0325e57e08d41becff64f81e2d00 (diff) |
sna: Initialize value read through ioctl to please valgrind
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_display.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index df80f1e8..af71f116 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -3890,6 +3890,7 @@ sna_cursor_pre_init(struct sna *sna) sna->cursor.max_size = 64; + cap.value = 0; cap.name = DRM_CAP_CURSOR_WIDTH; if (drmIoctl(sna->kgem.fd, LOCAL_IOCTL_GET_CAP, &cap) == 0) sna->cursor.max_size = cap.value; |