commit | 8d4ed11da635a1abe0ef2d795b4d48824c54d0e7 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Apr 04 14:50:32 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Apr 04 14:50:32 2020 +0200 |
tree | 2e6e32cb89174e28967a9cd9a9408c99c884a609 | |
parent | cde0ff39da2459b16007fef701ebaa449fb6fe9d [diff] [blame] |
patch 8.2.0510: Coverity complains about using uninitialized variable Problem: Coverity complains about using uninitialized variable. Solution: Assign a value to "scol". Move code inside NULL check.
diff --git a/src/beval.c b/src/beval.c index 63aaf13..6b10a65 100644 --- a/src/beval.c +++ b/src/beval.c
@@ -110,6 +110,8 @@ lbuf = vim_strnsave(lbuf, len); } } + else + scol = col; if (winp != NULL) *winp = wp;