Commit 337dee0e authored by sasha@mysql.sashanet.com's avatar sasha@mysql.sashanet.com
Browse files

fixed coredump on corrupt charset index

parent 7a5ec230
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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)
{
  CS_ID **c;
  if(cs)
    for (c = cs; *c; ++c)
      if ((*c)->number == number)
	return (*c)->name;