comparison src/beval.c @ 19908:473ceb7f65e2 v8.2.0510

patch 8.2.0510: Coverity complains about using uninitialized variable Commit: https://github.com/vim/vim/commit/8d4ed11da635a1abe0ef2d795b4d48824c54d0e7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 4 14:50:32 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 Apr 2020 15:00:03 +0200
parents 49b78d6465e5
children 06a1dd50463e
comparison
equal deleted inserted replaced
19907:24ec859a2130 19908:473ceb7f65e2
108 if (len == 0) 108 if (len == 0)
109 return FAIL; 109 return FAIL;
110 lbuf = vim_strnsave(lbuf, len); 110 lbuf = vim_strnsave(lbuf, len);
111 } 111 }
112 } 112 }
113 else
114 scol = col;
113 115
114 if (winp != NULL) 116 if (winp != NULL)
115 *winp = wp; 117 *winp = wp;
116 if (lnump != NULL) 118 if (lnump != NULL)
117 *lnump = lnum; 119 *lnump = lnum;