Merge: Fix Reader::read
authorJean Privat <jean@pryen.org>
Fri, 11 May 2018 20:01:04 +0000 (16:01 -0400)
committerJean Privat <jean@pryen.org>
Fri, 11 May 2018 20:01:04 +0000 (16:01 -0400)
commit7b7daf6726a79abf51e4d80e0c14d22077bfd2d4
tree9787702b6d1880a34d7f1422b77857f6d13235b8
parent8f1b7f24824e92aadc79846af492ea9611f5fc33
parent7129cc174da914bc4f88fdd5a01f177520c71815
Merge: Fix Reader::read

With the stream refactor being developed and tested alongside, some buggy behaviours are being discovered.
This PR fixes one of such, where calling read on a dead stream caused the program to segfault.

Pull-Request: #2670
Reviewed-by: Jean Privat <jean@pryen.org>
lib/core/stream.nit