From 3c8c5a224313e61fcb400bcfe3524eb510890cee Mon Sep 17 00:00:00 2001 From: gambas Date: Fri, 16 Feb 2018 02:39:30 +0100 Subject: [PATCH] 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. --- main/gbx/gbx_stream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/gbx/gbx_stream.c b/main/gbx/gbx_stream.c index ce9a1d62f..0ebb94b40 100644 --- a/main/gbx/gbx_stream.c +++ b/main/gbx/gbx_stream.c @@ -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);