diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 21c877e2b9..67c346237c 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -7699,6 +7699,10 @@ eval_vars ( sprintf((char *)strbuf, "%" PRId64, (int64_t)sourcing_lnum); result = strbuf; break; + default: + // should not happen + *errormsg = (char_u *)""; + return NULL; } resultlen = (int)STRLEN(result); /* length of new string */ |