~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/tree.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:
82
82
  if (default_alloc_size < DEFAULT_ALLOC_SIZE)
83
83
    default_alloc_size= DEFAULT_ALLOC_SIZE;
84
84
  default_alloc_size= MY_ALIGN(default_alloc_size, DEFAULT_ALIGN_SIZE);
85
 
  bzero((uchar*) &tree->null_element,sizeof(tree->null_element));
 
85
  memset((uchar*) &tree->null_element, 0, sizeof(tree->null_element));
86
86
  tree->root= &tree->null_element;
87
87
  tree->compare=compare;
88
88
  tree->size_of_element=size > 0 ? (uint) size : 0;