summaryrefslogtreecommitdiff
path: root/keytypes.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 15:33:17 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 15:36:06 -0800
commit1fb639c97fc28b8ed66b5553eafbbeed07e4cb09 (patch)
tree9d8da033bf81897198e4ca47b5e5b6efe4a3a90f /keytypes.c
parent8e58b7949ab96180d60fb13f7820d6cc01c228ae (diff)
Replace malloc()+bzero() pairs with calloc() calls
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'keytypes.c')
-rw-r--r--keytypes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/keytypes.c b/keytypes.c
index 74f0d26..1a77419 100644
--- a/keytypes.c
+++ b/keytypes.c
@@ -240,10 +240,9 @@ NextKeyType(KeyTypesInfo * info)
{
KeyTypeInfo *type;
- type = malloc(sizeof(KeyTypeInfo));
+ type = calloc(1, sizeof(KeyTypeInfo));
if (type != NULL)
{
- bzero(type, sizeof(KeyTypeInfo));
type->defs.fileID = info->fileID;
type->dpy = info->dpy;
info->types = (KeyTypeInfo *) AddCommonInfo(&info->types->defs,