diff options
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -1494,17 +1494,21 @@ ActionsInit(void) if (!actionsInitialized) { bzero((char *) &constTrue, sizeof(constTrue)); + constTrue = (ExprDef) { + .common.stmtType = StmtExpr, + .common.next = NULL, + .op = ExprIdent, + .type = TypeBoolean, + .value.str = XkbInternAtom(NULL, "true", False) + }; bzero((char *) &constFalse, sizeof(constFalse)); - constTrue.common.stmtType = StmtExpr; - constTrue.common.next = NULL; - constTrue.op = ExprIdent; - constTrue.type = TypeBoolean; - constTrue.value.str = XkbInternAtom(NULL, "true", False); - constFalse.common.stmtType = StmtExpr; - constFalse.common.next = NULL; - constFalse.op = ExprIdent; - constFalse.type = TypeBoolean; - constFalse.value.str = XkbInternAtom(NULL, "false", False); + constFalse = (ExprDef) { + .common.stmtType = StmtExpr, + .common.next = NULL, + .op = ExprIdent, + .type = TypeBoolean, + .value.str = XkbInternAtom(NULL, "false", False) + }; actionsInitialized = 1; } return; |