X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=dri.c;h=dfcfb60b209e59af0b6519ec322a8fadeec940c2;hb=0a7aeab1c6dd29aceae129f8dd2903f2f41de62f;hp=8a856932b81db6da14471527d166458498a987e9;hpb=457fb69ecc6a0120a2f1e92eb2d5816584848982;p=android-x86%2Fexternal-minigbm.git diff --git a/dri.c b/dri.c index 8a85693..dfcfb60 100644 --- a/dri.c +++ b/dri.c @@ -71,10 +71,9 @@ static bool lookup_extension(const __DRIextension *const *extensions, const char */ static void close_gem_handle(uint32_t handle, int fd) { - struct drm_gem_close gem_close; + struct drm_gem_close gem_close = { 0 }; int ret = 0; - memset(&gem_close, 0, sizeof(gem_close)); gem_close.handle = handle; ret = drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, &gem_close); if (ret)