diff options
Diffstat (limited to 'src/mds-kbdc/variables.c')
-rw-r--r-- | src/mds-kbdc/variables.c | 2 |
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; } |