summaryrefslogtreecommitdiff
path: root/bsd/drm_auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd/drm_auth.h')
-rw-r--r--bsd/drm_auth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bsd/drm_auth.h b/bsd/drm_auth.h
index f2c2d8da..db0c0118 100644
--- a/bsd/drm_auth.h
+++ b/bsd/drm_auth.h
@@ -64,6 +64,7 @@ int DRM(add_magic)(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic)
hash = DRM(hash_magic)(magic);
entry = (drm_magic_entry_t*) DRM(alloc)(sizeof(*entry), DRM_MEM_MAGIC);
if (!entry) DRM_OS_RETURN(ENOMEM);
+ memset(entry, 0, sizeof(*entry));
entry->magic = magic;
entry->priv = priv;
entry->next = NULL;