summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-11-04 14:09:03 +0200
committermonty@narttu.mysql.fi <>2003-11-04 14:09:03 +0200
commitf763d4c31d0c6aa4496c6682e4e329a19384606e (patch)
tree07ce6a4f792ac489b079759afb3cc65847ca0cb0 /sql/unireg.cc
parent4e4725377d27ff0101788fd7ed89670614ed8294 (diff)
downloadmariadb-git-f763d4c31d0c6aa4496c6682e4e329a19384606e.tar.gz
Removed some warnings reported by valgrind
After merge fixes. Now code compiles, but there is still some valgrind warnings that needs to be fixed
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r--sql/unireg.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc
index e93e290bd4c..fc948ddd5a6 100644
--- a/sql/unireg.cc
+++ b/sql/unireg.cc
@@ -305,6 +305,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);