Fix an uninitialized flag in streams, that make watching real files from reading incorrectly raise the Read event.

[INTERPRETER]
* BUG: Fix an uninitialized flag in streams, that make watching real files from reading incorrectly raise the Read event.
This commit is contained in:
gambas 2018-02-16 02:39:30 +01:00
parent 0af0699faa
commit 3c8c5a2243

View file

@ -232,6 +232,7 @@ __OPEN:
stream->common.available_now = FALSE;
stream->common.redirected = FALSE;
stream->common.redirect = NULL;
stream->common.no_read_ahead = FALSE;
if ((*(sclass->open))(stream, path, mode, NULL))
THROW_SYSTEM(errno, path);