If we have to realloc() "list" we need to zero out the new entries
authormillert <millert@openbsd.org>
Thu, 22 May 2014 19:50:34 +0000 (19:50 +0000)
committermillert <millert@openbsd.org>
Thu, 22 May 2014 19:50:34 +0000 (19:50 +0000)
commit49116013a05abb38df03e6b61f379fd1cf24d4d2
treed22eb372a5cf209f1ed708366ca2bdd6c1bd9406
parent3156be1e3e081e6790d96d6a7509dee8ebbdafa0
If we have to realloc() "list" we need to zero out the new entries
to match the behavior of the initial calloc().  The "cols" array
does not actually need to be zeroed so use reallocarray() instead
of calloc().  Also fix a memory leak of tbl and initialize the value
of maxcols/maxentry in the assignment instead of in the ecalloc()
call.  OK espie@
usr.bin/column/column.c