diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-04 20:14:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-04 20:14:40 -0700 |
commit | 1b2c4c3b5d40fdea424731007aab7fd97d107816 (patch) | |
tree | 32200828d3ef3a7a2d923312c61eca8b03ed3676 /lisplib.c | |
parent | 9ffdf7dc03f379be0087113f745d36330b574d8f (diff) | |
download | txr-1b2c4c3b5d40fdea424731007aab7fd97d107816.tar.gz txr-1b2c4c3b5d40fdea424731007aab7fd97d107816.tar.bz2 txr-1b2c4c3b5d40fdea424731007aab7fd97d107816.zip |
Null out freed history elements.
* linenoise/linenoise.c (edit): Set freed element of history
array to null.
(free_hist): Null out all elements, and then the array
pointer.
(lino_hist_set_max_len): Calculate value of history_len
variable in obviously correct way, based on amount of history
preserved.
Diffstat (limited to 'lisplib.c')
0 files changed, 0 insertions, 0 deletions