From 7c6c9251c23e4923ae4353a34aa7d83b5a5840d1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 8 Dec 2014 17:32:01 +0100 Subject: mds-kbdc: compile-layout. bug fixes, test-cases and mark all untested error reports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mds-kbdc/variables.c') 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; } -- cgit v1.2.3-70-g09d2