1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2020-04-04 14:50:32 +02:00
parent cde0ff39da
commit 8d4ed11da6
3 changed files with 14 additions and 10 deletions

View File

@@ -110,6 +110,8 @@ find_word_under_cursor(
lbuf = vim_strnsave(lbuf, len);
}
}
else
scol = col;
if (winp != NULL)
*winp = wp;