fix obscure error lookup
This commit is contained in:
jonas@perch.ndb.mysql.com 2006-03-22 15:09:52 +01:00
parent 059b05cbbf
commit 0afd03f4fc

View file

@ -55,7 +55,9 @@ static const ConnectionError connectionError[] =
const char *lookupConnectionError(Uint32 err)
{
int i= 0;
while ((Uint32)connectionError[i].err != err && (Uint32)connectionError[i].err != -1);
while ((Uint32)connectionError[i].err != err &&
(Uint32)connectionError[i].err != -1)
i++;
return connectionError[i].text;
}