Commit 2ca5d837 authored by unknown's avatar unknown

fixed coredump on corrupt charset index


mysys/charset.c:
  fixed coredump on corrupt charset index
parent ff4787a7
...@@ -63,6 +63,7 @@ static uint num_from_csname(CS_ID **cs, const char *name) ...@@ -63,6 +63,7 @@ static uint num_from_csname(CS_ID **cs, const char *name)
static char *name_from_csnum(CS_ID **cs, uint number) static char *name_from_csnum(CS_ID **cs, uint number)
{ {
CS_ID **c; CS_ID **c;
if(cs)
for (c = cs; *c; ++c) for (c = cs; *c; ++c)
if ((*c)->number == number) if ((*c)->number == number)
return (*c)->name; return (*c)->name;
......
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