Commit e3836d64 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

avoid writting junk

parent dde384d9
...@@ -302,6 +302,7 @@ static uint pack_keys(uchar *keybuff,uint key_count,KEY *keyinfo) ...@@ -302,6 +302,7 @@ static uint pack_keys(uchar *keybuff,uint key_count,KEY *keyinfo)
{ {
keybuff[0]=(uchar) key_count; keybuff[0]=(uchar) key_count;
keybuff[1]=(uchar) key_parts; keybuff[1]=(uchar) key_parts;
keybuff[2]= keybuff[3]= 0;
} }
length=(uint) (pos-keyname_pos); length=(uint) (pos-keyname_pos);
int2store(keybuff+4,length); int2store(keybuff+4,length);
......
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