aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/variables.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-08 17:32:01 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-08 17:32:01 +0100
commit7c6c9251c23e4923ae4353a34aa7d83b5a5840d1 (patch)
tree19b4d07aff4e0515efb1eee98e913aa0ae1d3597 /src/mds-kbdc/variables.c
parentmds-kbdc: compile-keyboard: regression (diff)
downloadmds-7c6c9251c23e4923ae4353a34aa7d83b5a5840d1.tar.gz
mds-7c6c9251c23e4923ae4353a34aa7d83b5a5840d1.tar.bz2
mds-7c6c9251c23e4923ae4353a34aa7d83b5a5840d1.tar.xz
mds-kbdc: compile-layout. bug fixes, test-cases and mark all untested error reports
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-kbdc/variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-kbdc/variables.c b/src/mds-kbdc/variables.c
index b53569a..55bae76 100644
--- a/src/mds-kbdc/variables.c
+++ b/src/mds-kbdc/variables.c
@@ -153,7 +153,7 @@ int variables_let(size_t variable, mds_kbdc_tree_t* restrict value)
if (new == NULL)
return -1;
variables = new;
- memset(variables, 0, (variable + 1 - variable_count) * sizeof(variable_t*));
+ memset(variables + variable_count, 0, (variable + 1 - variable_count) * sizeof(variable_t*));
variable_count = variable + 1;
}