Commit 4a02c193 authored by unknown's avatar unknown

ndb -

  fix obscure error lookup


ndb/src/kernel/vm/TransporterCallback.cpp:
  Fix error lookup
parent ca18ae84
...@@ -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