Mercurial > vim
comparison src/regexp.c @ 7009:286fd54c7ae3 v7.4.822
patch 7.4.822
Problem: More problems reported by coverity.
Solution: Avoid the warnings. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 11 Aug 2015 19:14:00 +0200 |
parents | 94b179585851 |
children | 0b6c37dd858d |
comparison
equal
deleted
inserted
replaced
7008:7ce1f4e998bb | 7009:286fd54c7ae3 |
---|---|
3822 if (regstack.ga_data == NULL) | 3822 if (regstack.ga_data == NULL) |
3823 { | 3823 { |
3824 /* Use an item size of 1 byte, since we push different things | 3824 /* Use an item size of 1 byte, since we push different things |
3825 * onto the regstack. */ | 3825 * onto the regstack. */ |
3826 ga_init2(®stack, 1, REGSTACK_INITIAL); | 3826 ga_init2(®stack, 1, REGSTACK_INITIAL); |
3827 ga_grow(®stack, REGSTACK_INITIAL); | 3827 (void)ga_grow(®stack, REGSTACK_INITIAL); |
3828 regstack.ga_growsize = REGSTACK_INITIAL * 8; | 3828 regstack.ga_growsize = REGSTACK_INITIAL * 8; |
3829 } | 3829 } |
3830 | 3830 |
3831 if (backpos.ga_data == NULL) | 3831 if (backpos.ga_data == NULL) |
3832 { | 3832 { |
3833 ga_init2(&backpos, sizeof(backpos_T), BACKPOS_INITIAL); | 3833 ga_init2(&backpos, sizeof(backpos_T), BACKPOS_INITIAL); |
3834 ga_grow(&backpos, BACKPOS_INITIAL); | 3834 (void)ga_grow(&backpos, BACKPOS_INITIAL); |
3835 backpos.ga_growsize = BACKPOS_INITIAL * 8; | 3835 backpos.ga_growsize = BACKPOS_INITIAL * 8; |
3836 } | 3836 } |
3837 | 3837 |
3838 if (REG_MULTI) | 3838 if (REG_MULTI) |
3839 { | 3839 { |