mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Added type checking to Cyc_io_read_line()
This commit is contained in:
parent
66cd34c84c
commit
3b75d3ea16
1 changed files with 1 additions and 0 deletions
|
@ -6150,6 +6150,7 @@ object Cyc_io_read_line(void *data, object cont, object port)
|
|||
char buf[1024];
|
||||
//int i = 0, c;
|
||||
|
||||
Cyc_check_port(data, port);
|
||||
if (stream == NULL) {
|
||||
Cyc_rt_raise2(data, "Unable to read from closed port: ", port);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue