mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
avoid writting junk
This commit is contained in:
parent
78ee8de22d
commit
fab5bf3529
1 changed files with 1 additions and 0 deletions
|
@ -302,6 +302,7 @@ static uint pack_keys(uchar *keybuff,uint key_count,KEY *keyinfo)
|
|||
{
|
||||
keybuff[0]=(uchar) key_count;
|
||||
keybuff[1]=(uchar) key_parts;
|
||||
keybuff[2]= keybuff[3]= 0;
|
||||
}
|
||||
length=(uint) (pos-keyname_pos);
|
||||
int2store(keybuff+4,length);
|
||||
|
|
Loading…
Reference in a new issue