summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console-client/xkb/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/console-client/xkb/parser.y b/console-client/xkb/parser.y
index 854ee408..36bc3a3f 100644
--- a/console-client/xkb/parser.y
+++ b/console-client/xkb/parser.y
@@ -1379,7 +1379,7 @@ key_set_keysym (struct key *key, group_t group, int level, symbol ks)
{
keysyms = realloc (keysyms, (level + 1)*sizeof(symbol));
- if (!keys)
+ if (!keysyms)
{
fprintf (stderr, "No mem\n");
exit (EXIT_FAILURE);
@@ -1412,7 +1412,7 @@ key_set_action (struct key *key, group_t group, int level, xkb_action_t *action)
/* Levels between 'width' and 'level' have no actions defined. */
memset (&actions[width], 0, (level - width)*sizeof(xkb_action_t *));
- if (!keys)
+ if (!actions)
{
fprintf (stderr, "No mem\n");
exit (EXIT_FAILURE);