Added type checking to Cyc_io_read_line()

This commit is contained in:
Justin Ethier 2017-08-21 12:31:06 +00:00
parent 66cd34c84c
commit 3b75d3ea16

View file

@ -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);
}