~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handlerton.cc

  • Committer: Brian Aker
  • Date: 2008-12-05 03:17:16 UTC
  • mfrom: (641.3.11 devel)
  • Revision ID: brian@tangent.org-20081205031716-r65xkzugjylmvv1h
Monty merge (a couple of alterations for malloc()).

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
{
227
227
  handlerton *hton;
228
228
 
229
 
  hton= (handlerton *)my_malloc(sizeof(handlerton),
230
 
                                MYF(MY_WME | MY_ZEROFILL));
231
 
  /*
232
 
    FIXME: the MY_ZEROFILL flag above doesn't zero all the bytes.
 
229
  hton= (handlerton *)malloc(sizeof(handlerton));
 
230
  memset(hton, 0, sizeof(handlerton));
233
231
 
234
 
    This was detected after adding get_backup_engine member to handlerton
235
 
    structure. Apparently get_backup_engine was not NULL even though it was
236
 
    not initialized.
237
 
   */
238
 
  memset(hton, 0, sizeof(hton));
239
232
  /* Historical Requirement */
240
233
  plugin->data= hton; // shortcut for the future
241
234
  if (plugin->plugin->init)