~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/handler.cc

Replacing all bzero() calls with memset() calls and removing the bzero.c file.
Also removing check for bzero from the 'configure.ac' autoconf file.

Show diffs side-by-side

added added

removed removed

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