From b74955cee5669175aa6e54fb865f51acb071bb18 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 15 Jan 2013 13:05:21 +0100 Subject: [PATCH] Better test for stream state. --- src/relay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/relay.cpp b/src/relay.cpp index dc1e1652..2262fa7e 100644 --- a/src/relay.cpp +++ b/src/relay.cpp @@ -100,7 +100,7 @@ void relay::parseImpl(const string& buffer, const string::size_type position, { Parts newPart = Part_None; - if ((cont = ((iss >> word) != 0))) + if ((cont = !(iss >> word).fail())) { // A little hack for handling comments if (inComment)