aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák2015-06-04 11:57:50 -0500
committerAlex Deucher2015-08-05 12:47:51 -0500
commit7d7f25c938439bfe977bb51614ce4be80ffd3f45 (patch)
tree437ace1b64cc9e70f5aac766a8e23c5f4d97f3ea /amdgpu/amdgpu_device.c
parent34e1250e3769f33b92a12f535f4fca755388ee10 (diff)
downloadexternal-libdrm-7d7f25c938439bfe977bb51614ce4be80ffd3f45.tar.gz
external-libdrm-7d7f25c938439bfe977bb51614ce4be80ffd3f45.tar.xz
external-libdrm-7d7f25c938439bfe977bb51614ce4be80ffd3f45.zip
amdgpu: fix valgrind warnings
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_device.c')
-rw-r--r--amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index 212e7075..44048396 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -110,7 +110,7 @@ static int fd_compare(void *key1, void *key2)
110static int amdgpu_get_auth(int fd, int *auth) 110static int amdgpu_get_auth(int fd, int *auth)
111{ 111{
112 int r = 0; 112 int r = 0;
113 drm_client_t client; 113 drm_client_t client = {};
114 114
115 if (drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER) 115 if (drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER)
116 *auth = 0; 116 *auth = 0;