diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2018-06-19 04:48:25 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-19 10:48:25 +0200 |
commit | b148213366528a710d8c1515f9d8101934c50bef (patch) | |
tree | 44aa010b51f1291b75c031bc85a2ec6c795553cd | |
parent | 950044822046ec42a09d59f432d6bb718f433667 (diff) | |
download | rneovim-b148213366528a710d8c1515f9d8101934c50bef.tar.gz rneovim-b148213366528a710d8c1515f9d8101934c50bef.tar.bz2 rneovim-b148213366528a710d8c1515f9d8101934c50bef.zip |
vim-patch:8.0.0598: building with gcc 7.1 yields new warnings (#8585)
Problem: Building with gcc 7.1 yields new warnings.
Solution: Initialize result. (John Marriott)
https://github.com/vim/vim/commit/9e0f6ec0762575d229b86798b284ca4876bc3d73
-rw-r--r-- | src/nvim/ex_docmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 2f41080a41..b7863402d5 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -8611,7 +8611,8 @@ eval_vars ( default: // should not happen *errormsg = (char_u *)""; - return NULL; + result = (char_u *)""; // avoid gcc warning + break; } resultlen = STRLEN(result); /* length of new string */ |