diff options
author | ZyX <kp-pav@yandex.ru> | 2017-11-05 02:41:44 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-11-06 01:17:39 +0300 |
commit | 7bc6de75263f58c6c4f999bc86a6454ae9f28b80 (patch) | |
tree | 7d991ea5c093c0e3bf1705fe5a8a40de9402b4f1 /src/nvim/viml/parser/expressions.c | |
parent | 07ec709141886c6db4f944665e07a36ef7302eb4 (diff) | |
download | rneovim-7bc6de75263f58c6c4f999bc86a6454ae9f28b80.tar.gz rneovim-7bc6de75263f58c6c4f999bc86a6454ae9f28b80.tar.bz2 rneovim-7bc6de75263f58c6c4f999bc86a6454ae9f28b80.zip |
api/vim,functests: Add tests for nvim_parse_expression, fix found bugs
Diffstat (limited to 'src/nvim/viml/parser/expressions.c')
-rw-r--r-- | src/nvim/viml/parser/expressions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/viml/parser/expressions.c b/src/nvim/viml/parser/expressions.c index b19aab22af..b10952a8ac 100644 --- a/src/nvim/viml/parser/expressions.c +++ b/src/nvim/viml/parser/expressions.c @@ -1492,7 +1492,7 @@ static void parse_quoted_string(ParserState *const pstate, node->data.str.value = NULL; } else { char *v_p; - v_p = node->data.str.value = xmalloc(size); + v_p = node->data.str.value = xmallocz(size); p = s + 1; while (p < e) { const char *const chunk_e = memchr(p, '\'', (size_t)(e - p)); |