diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-08 05:57:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-08 05:57:40 -0700 |
commit | 33acb79f64de9a05122f0e3cc103cbcf58864b9c (patch) | |
tree | 43fba442f8a641ff4d32f56c167491c2f02efbe2 /ftw.h | |
parent | b00727089e36a75ed86160cba51695689d9a38d5 (diff) | |
download | txr-33acb79f64de9a05122f0e3cc103cbcf58864b9c.tar.gz txr-33acb79f64de9a05122f0e3cc103cbcf58864b9c.tar.bz2 txr-33acb79f64de9a05122f0e3cc103cbcf58864b9c.zip |
buffers: don't let a buffer shrink to zero.
* buf.c (buf_shrink): If a buffer has zero length,
don't shrink the allocation size all the way down to
zero, because that value indicates a non-resizeable
buffer.
Diffstat (limited to 'ftw.h')
0 files changed, 0 insertions, 0 deletions