~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.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:
352
352
    structure. Apparently get_backup_engine was not NULL even though it was
353
353
    not initialized.
354
354
   */
355
 
  bzero(hton, sizeof(hton));
 
355
  memset(hton, 0, sizeof(hton));
356
356
  /* Historical Requirement */
357
357
  plugin->data= hton; // shortcut for the future
358
358
  if (plugin->plugin->init)
1695
1695
  TABLE dummy_table;
1696
1696
  TABLE_SHARE dummy_share;
1697
1697
 
1698
 
  bzero((char*) &dummy_table, sizeof(dummy_table));
1699
 
  bzero((char*) &dummy_share, sizeof(dummy_share));
 
1698
  memset((char*) &dummy_table, 0, sizeof(dummy_table));
 
1699
  memset((char*) &dummy_share, 0, sizeof(dummy_share));
1700
1700
  dummy_table.s= &dummy_share;
1701
1701
 
1702
1702
  /* DB_TYPE_UNKNOWN is used in ALTER TABLE when renaming only .frm files */
3138
3138
  TABLE table;
3139
3139
  TABLE_SHARE share;
3140
3140
 
3141
 
  bzero((uchar*) &create_info,sizeof(create_info));
 
3141
  memset((uchar*) &create_info, 0, sizeof(create_info));
3142
3142
  if ((error= ha_discover(thd, db, name, &frmblob, &frmlen)))
3143
3143
  {
3144
3144
    /* Table could not be discovered and thus not created */