null string check

This commit is contained in:
Matej Sekoranja
2012-07-30 22:03:23 +02:00
parent d9465b0954
commit 689d0875b7

View File

@@ -103,7 +103,7 @@ namespace epics {
DeserializableControl* control) {
std::size_t size = SerializeHelper::readSize(buffer, control);
if(size>0)
if(size!=(size_t)-1) // TODO null strings check, to be removed in the future
{
if (buffer->getRemaining()>=size)
{