xf86drm: Fix ioctl struct clearing in drmAgpEnable

This one is a bit harder to notice.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
main
Connor Behan 2015-03-24 13:53:51 -04:00 committed by Emil Velikov
parent 37dc0a14cf
commit 1490055bc0
1 changed files with 1 additions and 1 deletions

View File

@ -1719,7 +1719,7 @@ int drmAgpEnable(int fd, unsigned long mode)
{
drm_agp_mode_t m;
memclear(mode);
memclear(m);
m.mode = mode;
if (drmIoctl(fd, DRM_IOCTL_AGP_ENABLE, &m))
return -errno;