From 6c284faf8b640bc540722235d68eb07561f1fe3c Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 22 Aug 2011 15:45:49 -0300 Subject: [PATCH] make sure we do a full reset after Scleanup. --- packages/PLStream/pl-stream.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/PLStream/pl-stream.c b/packages/PLStream/pl-stream.c index e996eb49b..a6974add4 100755 --- a/packages/PLStream/pl-stream.c +++ b/packages/PLStream/pl-stream.c @@ -3335,9 +3335,12 @@ static const IOSTREAM S__iob0[] = }; +/* vsc: Scleanup should reset init done */ +static int done; + void SinitStreams(void) -{ static int done; +{ if ( !done++ ) { int i; @@ -3464,4 +3467,5 @@ Scleanup(void) *s = S__iob0[i]; /* re-initialise */ } + done = 0; }