summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-11 17:25:30 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-11 17:25:30 +0100
commit95f23cf894757d05a6b6c980062a46968dc069b1 (patch)
tree1678318e5cdc89ea301e0c3bd898648f5cf8914f
parent3a6c65c546ccb450890676db6a8c7e93caf69d8a (diff)
xf86drm: Fix ioctl struct clearing in drmGetVersion
Oops, fumbled that one. Reported-by: Jan Vesely <jan.vesely@rutgers.edu> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
-rw-r--r--xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drm.c b/xf86drm.c
index a2e24eb5..ed385472 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -768,7 +768,7 @@ drmVersionPtr drmGetVersion(int fd)
drmVersionPtr retval;
drm_version_t *version = drmMalloc(sizeof(*version));
- memclear(version);
+ memclear(*version);
if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) {
drmFreeKernelVersion(version);