Prevent possibility of crash

This commit is contained in:
Justin Ethier 2017-08-21 23:04:40 -04:00
parent dca2c86259
commit 9f0482dafc
2 changed files with 8 additions and 0 deletions

View file

@ -2,6 +2,10 @@
## 0.6.1 - TBD
Bug Fixes
- Fix possibility of crashing when calling `close-port`.
## 0.6 - August 21, 2017
Features

View file

@ -813,6 +813,8 @@ typedef struct {
p.tok_buf_len = 0; \
p.mem_buf = NULL; \
p.mem_buf_len = 0; \
p.str_bv_in_mem_buf = NULL; \
p.str_bv_in_mem_buf_len = 0; \
p.read_len = 1;
#define make_input_port(p,f,rl) \
@ -832,6 +834,8 @@ typedef struct {
p.tok_buf_len = CYC_IO_BUF_LEN; \
p.mem_buf = malloc(CYC_IO_BUF_LEN); \
p.mem_buf_len = 0; \
p.str_bv_in_mem_buf = NULL; \
p.str_bv_in_mem_buf_len = 0; \
p.read_len = rl;
/**