From dc60ae49de97ed12e016b7d957110d281260d804 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 13 Dec 2006 11:14:25 +0000 Subject: [PATCH] Fixed a bug where EOS/EOF was interpreted as a stream error --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40213 --- core/CTextParsers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/CTextParsers.cpp b/core/CTextParsers.cpp index 7f922eef..b0720bad 100644 --- a/core/CTextParsers.cpp +++ b/core/CTextParsers.cpp @@ -233,8 +233,7 @@ SMCParseError CTextParsers::ParseStream_SMC(void *stream, { if (!read) { - err = SMCParse_StreamError; - goto failed; + break; } /* :TODO: do this outside of the main loop somehow