]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: allow to add column to already used table
authorKarel Zak <kzak@redhat.com>
Fri, 3 Mar 2017 09:37:37 +0000 (10:37 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Mar 2017 09:37:37 +0000 (10:37 +0100)
commit1765814521bf2aba7b8c03d3ab2e3b784e1ce2c4
tree7e699b3b7f3122b1c5d880fe6b25830c5d8f2aeb
parentc14224b37463259576cb1344f49719608754e4ec
libsmartcols: allow to add column to already used table

Now it's impossible to add new column if the table already contains
lines with data. This patch forces library to realloc cell array in
the lines to accept a new column.

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/table.c