~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/records.cc

  • 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:
58
58
                          bool print_error, uint idx)
59
59
{
60
60
  empty_record(table);
61
 
  bzero((char*) info,sizeof(*info));
 
61
  memset((char*) info, 0, sizeof(*info));
62
62
  info->table= table;
63
63
  info->file=  table->file;
64
64
  info->record= table->record[0];
146
146
{
147
147
  IO_CACHE *tempfile;
148
148
 
149
 
  bzero((char*) info,sizeof(*info));
 
149
  memset((char*) info, 0, sizeof(*info));
150
150
  info->thd=thd;
151
151
  info->table=table;
152
152
  info->file= table->file;
502
502
    return(1);
503
503
#ifdef HAVE_purify
504
504
  // Avoid warnings in qsort
505
 
  bzero(info->cache,rec_cache_size+info->cache_records* info->struct_length+1);
 
505
  memset(info->cache, 0,
 
506
         rec_cache_size+info->cache_records* info->struct_length+1);
506
507
#endif
507
508
  info->read_positions=info->cache+rec_cache_size;
508
509
  info->cache_pos=info->cache_end=info->cache;