~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.h

  • 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:
499
499
  {
500
500
    void *ptr;
501
501
    if ((ptr=alloc_root(mem_root,size)))
502
 
      bzero(ptr, size);
 
502
      memset(ptr, 0, size);
503
503
    return ptr;
504
504
  }
505
505
  inline char *strdup(const char *str)
1203
1203
    }
1204
1204
    st_transactions()
1205
1205
    {
1206
 
      bzero((char*)this, sizeof(*this));
 
1206
      memset((char*)this, 0, sizeof(*this));
1207
1207
      xid_state.xid.null();
1208
1208
      init_sql_alloc(&mem_root, ALLOC_ROOT_MIN_BLOCK_SIZE, 0);
1209
1209
    }