diff options
Diffstat (limited to 'alias.c')
-rw-r--r-- | alias.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |