summaryrefslogtreecommitdiff
path: root/alias.c
diff options
context:
space:
mode:
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