]> git.ipfire.org Git - thirdparty/kmod.git/commit
util: remove dead code in freadline_wrapped
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 21 Jan 2015 11:37:23 +0000 (09:37 -0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 21 Jan 2015 12:18:44 +0000 (10:18 -0200)
commit88f6ffe449fc1c92725615348b63c4b59bb50921
tree7f18df56e5c9f0465fc9d4d088433277c396f4b4
parent211e3840fc53d001fe829ae08676b6ec6cfa07a6
util: remove dead code in freadline_wrapped

Each loop iteration starts with 'i < size'. When i is changed
the invariant is kept by checking if 'i == size' and growing the
buffer.
shared/util.c