~jaypipes/drizzle/subscriber-plugin

« back to all changes in this revision

Viewing changes to storage/myisam/sort.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:
120
120
 
121
121
  my_b_clear(&tempfile);
122
122
  my_b_clear(&tempfile_for_exceptions);
123
 
  bzero((char*) &buffpek,sizeof(buffpek));
 
123
  memset((char*) &buffpek, 0, sizeof(buffpek));
124
124
  sort_keys= (uchar **) NULL; error= 1;
125
125
  maxbuffer=1;
126
126
 
329
329
 
330
330
    my_b_clear(&sort_param->tempfile);
331
331
    my_b_clear(&sort_param->tempfile_for_exceptions);
332
 
    bzero((char*) &sort_param->buffpek, sizeof(sort_param->buffpek));
333
 
    bzero((char*) &sort_param->unique,  sizeof(sort_param->unique));
 
332
    memset((char*) &sort_param->buffpek, 0, sizeof(sort_param->buffpek));
 
333
    memset((char*) &sort_param->unique, 0,  sizeof(sort_param->unique));
334
334
    sort_keys= (uchar **) NULL;
335
335
 
336
336
    memavl=       max(sort_param->sortbuff_size, MIN_SORT_MEMORY);