diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-16 04:45:55 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-16 04:45:55 +0100 |
commit | 09ac3e362368800a46ddb9d47996ad4929e0efa0 (patch) | |
tree | 0aa66127f3169554a455b36958e6258852d631a6 | |
parent | mds-kbdc: support arrays (diff) | |
download | mds-09ac3e362368800a46ddb9d47996ad4929e0efa0.tar.gz mds-09ac3e362368800a46ddb9d47996ad4929e0efa0.tar.bz2 mds-09ac3e362368800a46ddb9d47996ad4929e0efa0.tar.xz |
mds-kbdc: fix let without array
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/mds-kbdc/make-tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mds-kbdc/make-tree.c b/src/mds-kbdc/make-tree.c index d00a05a..d32f222 100644 --- a/src/mds-kbdc/make-tree.c +++ b/src/mds-kbdc/make-tree.c @@ -676,6 +676,9 @@ int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict resu { #define node subnode NEW_NODE(string, STRING); + end = line; + prev_end_char = *end; + *end = '\0'; CHARS(string); #undef node node->value = (mds_kbdc_tree_t*)subnode; |