mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
Merge pull request #1843 from JackDanger/initialize-our_paren_pos-CID-102151
coverity/102151: initialize `our_paren_pos`
This commit is contained in:
commit
487d2ce74a
@ -1805,6 +1805,7 @@ int get_c_indent(void)
|
||||
}
|
||||
|
||||
if (trypos != NULL) {
|
||||
our_paren_pos = *trypos;
|
||||
/*
|
||||
* If the matching paren is more than one line away, use the indent of
|
||||
* a previous non-empty line that matches the same paren.
|
||||
@ -1814,7 +1815,6 @@ int get_c_indent(void)
|
||||
amount = get_indent_lnum(curwin->w_cursor.lnum - 1); /* XXX */
|
||||
} else {
|
||||
amount = -1;
|
||||
our_paren_pos = *trypos;
|
||||
for (lnum = cur_curpos.lnum - 1; lnum > our_paren_pos.lnum; --lnum) {
|
||||
l = skipwhite(ml_get(lnum));
|
||||
if (cin_nocode(l)) /* skip comment lines */
|
||||
|
Loading…
Reference in New Issue
Block a user