Skip to content
  • Philip Withnall's avatar
    Fix size of preallocated array · 7bf49c8d
    Philip Withnall authored
    Commit 084e1d86 added a preallocation to an array to avoid
    reallocations later on, but neglected the fact that after N insertions
    into the array, there’s always a NULL terminator added to the end. Fix
    the preallocation to include that NULL terminator.
    
    This doesn’t change the correctness of the code, but should eliminate
    one reallocation.
    
    Spotted by Sebastian Dröge. See
    !674
    
    .
    
    Signed-off-by: default avatarPhilip Withnall <withnall@endlessm.com>
    7bf49c8d