~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/myisamchk.c

  • Committer: Brian Aker
  • Date: 2008-07-29 07:47:38 UTC
  • mfrom: (212.6.1 bzero-memset)
  • Revision ID: brian@tangent.org-20080729074738-lfzim6htapm42f2o
MergeĀ fromĀ Mats

Show diffs side-by-side

added added

removed removed

Lines of Context:
1412
1412
  SORT_INFO sort_info;
1413
1413
  MI_SORT_PARAM sort_param;
1414
1414
 
1415
 
  bzero((char*)&sort_info,sizeof(sort_info));
1416
 
  bzero((char*)&sort_param,sizeof(sort_param));
 
1415
  memset((char*)&sort_info, 0, sizeof(sort_info));
 
1416
  memset((char*)&sort_param, 0, sizeof(sort_param));
1417
1417
  sort_param.sort_info=&sort_info;
1418
1418
  sort_info.param=param;
1419
1419
  keyinfo= &share->keyinfo[sort_key];
1646
1646
      goto err;
1647
1647
  }
1648
1648
  /* Clear end of block to get better compression if the table is backuped */
1649
 
  bzero((uchar*) buff+used_length,keyinfo->block_length-used_length);
 
1649
  memset((uchar*) buff+used_length, 0, keyinfo->block_length-used_length);
1650
1650
  if (my_pwrite(info->s->kfile,(uchar*) buff,(uint) keyinfo->block_length,
1651
1651
                page,param->myf_rw))
1652
1652
  {