summaryrefslogtreecommitdiff
path: root/alias.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 13:26:39 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 14:35:34 -0800
commit77b1efa1c83ad64d49d1e9c085d2a496580ce6f9 (patch)
treec121541999a472231178f6d9244266a5e953341d /alias.c
parent64761ee9424f755b84ab0ce02d13eda32d215a14 (diff)
Use C99 struct initializers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'alias.c')
-rw-r--r--alias.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/alias.c b/alias.c
index 8532d1b..d9e2431 100644
--- a/alias.c
+++ b/alias.c
@@ -237,10 +237,10 @@ ApplyAliases(XkbDescPtr xkb, Bool toGeom, AliasInfo ** info_in)
{
if (!xkb->geom)
{
- XkbGeometrySizesRec sizes;
- bzero((char *) &sizes, sizeof(XkbGeometrySizesRec));
- sizes.which = XkbGeomKeyAliasesMask;
- sizes.num_key_aliases = nOld + nNew;
+ XkbGeometrySizesRec sizes = {
+ .which = XkbGeomKeyAliasesMask,
+ .num_key_aliases = nOld + nNew
+ };
status = XkbAllocGeometry(xkb, &sizes);
}
else