diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-07-09 20:28:31 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-07-09 20:28:31 -0700 |
commit | 1d8d2214495fa29931948e08041cc8a1159fdd19 (patch) | |
tree | 3df6164837ace10957d5114bce8e1b95eb97c06b /tl.vim | |
parent | db663c43dee33d7473db7492222b99cdaf34c1ff (diff) | |
download | txr-1d8d2214495fa29931948e08041cc8a1159fdd19.tar.gz txr-1d8d2214495fa29931948e08041cc8a1159fdd19.tar.bz2 txr-1d8d2214495fa29931948e08041cc8a1159fdd19.zip |
Add missing closedir.
* sysif.c (opendir_free): Since d->dir may now be null, avoid
calling closedir on it in that situation. Also, set d->dir to
null after closedir.
(closedir_wrap): New static function.
(readdir_wrap): If the d->dir is null, safely treat that as a
directory entry not being available; do not pass a null DIR
pointer to readdir.
(sysif_init): Register intrinsic function closedir.
* txr.1: Documented, plus spelling error fix under readdir.
Diffstat (limited to 'tl.vim')
0 files changed, 0 insertions, 0 deletions