From 46cacdca855a99c1ffe0ccf7a7f88134bca9bade Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Wed, 6 Mar 2002 19:30:45 +0000 Subject: first pass at merging mesa 4.0 kernel drivers into new bsd-3-0-0 branch. --- bsd/drm_auth.h | 1 + 1 file changed, 1 insertion(+) (limited to 'bsd/drm_auth.h') 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; -- cgit v1.2.3