diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-11 17:25:30 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-11 17:25:30 +0100 |
commit | 95f23cf894757d05a6b6c980062a46968dc069b1 (patch) | |
tree | 1678318e5cdc89ea301e0c3bd898648f5cf8914f | |
parent | 3a6c65c546ccb450890676db6a8c7e93caf69d8a (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |