From 1233bc87a07817a1869a6ff8eb74870154e31346 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 1 Jul 2011 12:00:56 +0000 Subject: QPID-3330: Corrected handling of empty strings (using patch from Anthony Foglia) and added test case git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1141910 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/messaging/AddressParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/messaging/AddressParser.cpp') diff --git a/cpp/src/qpid/messaging/AddressParser.cpp b/cpp/src/qpid/messaging/AddressParser.cpp index 4c8f35fbc5..83aca82be4 100644 --- a/cpp/src/qpid/messaging/AddressParser.cpp +++ b/cpp/src/qpid/messaging/AddressParser.cpp @@ -151,7 +151,7 @@ bool AddressParser::readValueIfExists(Variant& value) bool AddressParser::readString(std::string& value, char delimiter) { if (readChar(delimiter)) { - std::string::size_type start = current++; + std::string::size_type start = current; while (!eos()) { if (input.at(current) == delimiter) { if (current > start) { -- cgit v1.2.1