diff options
author | Vincent Richard <[email protected]> | 2013-01-15 12:05:21 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-01-15 12:05:21 +0000 |
commit | b74955cee5669175aa6e54fb865f51acb071bb18 (patch) | |
tree | 654f93d3d96c2d459799ece5ccbaa047b62b72cf | |
parent | Removed unused includes for OpenSSL. (diff) | |
download | vmime-b74955cee5669175aa6e54fb865f51acb071bb18.tar.gz vmime-b74955cee5669175aa6e54fb865f51acb071bb18.zip |
Better test for stream state.
-rw-r--r-- | src/relay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |