summaryrefslogtreecommitdiffstats
path: root/linenoise/example.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-04 20:14:40 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-04 20:14:40 -0700
commit1b2c4c3b5d40fdea424731007aab7fd97d107816 (patch)
tree32200828d3ef3a7a2d923312c61eca8b03ed3676 /linenoise/example.c
parent9ffdf7dc03f379be0087113f745d36330b574d8f (diff)
downloadtxr-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 'linenoise/example.c')
0 files changed, 0 insertions, 0 deletions