forked from aniani/vim
patch 7.4.822
Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt)
This commit is contained in:
@@ -3824,14 +3824,14 @@ bt_regexec_both(line, col, tm)
|
||||
/* Use an item size of 1 byte, since we push different things
|
||||
* onto the regstack. */
|
||||
ga_init2(®stack, 1, REGSTACK_INITIAL);
|
||||
ga_grow(®stack, REGSTACK_INITIAL);
|
||||
(void)ga_grow(®stack, REGSTACK_INITIAL);
|
||||
regstack.ga_growsize = REGSTACK_INITIAL * 8;
|
||||
}
|
||||
|
||||
if (backpos.ga_data == NULL)
|
||||
{
|
||||
ga_init2(&backpos, sizeof(backpos_T), BACKPOS_INITIAL);
|
||||
ga_grow(&backpos, BACKPOS_INITIAL);
|
||||
(void)ga_grow(&backpos, BACKPOS_INITIAL);
|
||||
backpos.ga_growsize = BACKPOS_INITIAL * 8;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user