ndb -

  fix obscure error lookup
parent 059b05cb
...@@ -55,7 +55,9 @@ static const ConnectionError connectionError[] = ...@@ -55,7 +55,9 @@ static const ConnectionError connectionError[] =
const char *lookupConnectionError(Uint32 err) const char *lookupConnectionError(Uint32 err)
{ {
int i= 0; 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; return connectionError[i].text;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment