commit | 44aefffaad067886d266999cd17cf852b2a7e0b9 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Oct 05 19:23:59 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Oct 05 19:23:59 2020 +0200 |
tree | 8cf71d06229cd040be64aa8af9583ffb9defe3ea | |
parent | 55b419b871dd35f5b05dd2aed65f14461b493ba9 [diff] [blame] |
patch 8.2.1802: Vim9: crash with unterminated dict Problem: Vim9: crash with unterminated dict. (Dhiraj Mishra) Solution: Return empty string instead of NULL. (closes #7084)
diff --git a/src/vim9compile.c b/src/vim9compile.c index 373d76c..a6bdcc3 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -2822,7 +2822,10 @@ failret: if (*arg == NULL) + { semsg(_(e_missing_dict_end), _("[end of lines]")); + *arg = (char_u *)""; + } dict_unref(d); return FAIL; }