Re: [PATCH v1 1/2] string-list: use ALLOC_GROW macro when reallocing string_list
- From
Stefan Beller <sbeller@google.com>
- Date
- Apr 5, 2017, 20:00 UTC
- Message-ID
- <CAGZ79kYFjuESBr72f5eyv7r4XohzY4KoQU36pqHLa3CsLuKi9w@mail.gmail.com>
- In-Reply-To
- <20170405195600.54801-2-git@jeffhostetler.com>
On Wed, Apr 5, 2017 at 12:55 PM, <git@jeffhostetler.com> wrote:
> + if (list->nr + 1 >= list->alloc) > + ALLOC_GROW(list->items, list->nr+1, list->alloc);
No need for the condition here as it is part of the macro as well.
Thanks for spotting this fix! Stefan