fix bug in PutDecodedDatumInto() with STLPort (from trungantran)

pull/2/head
weidai 2009-06-18 20:08:16 +00:00
parent 59e1a979cf
commit dd60e2ff96
1 changed files with 4 additions and 0 deletions

View File

@ -64,7 +64,11 @@ void PutDecodedDatumInto(const TestData &data, const char *name, BufferedTransfo
while (!s1.empty())
{
while (s1[0] == ' ')
{
s1 = s1.substr(1);
if (s1.empty())
return; //avoid invalid read if s1 is empty
}
int repeat = 1;
if (s1[0] == 'r')