~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.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:
83
83
 
84
84
  /* Allocate a pointer array for the error message strings. */
85
85
  /* Zerofill it to avoid uninitialized gaps. */
86
 
  if (! (errmsgs= (const char**) my_malloc(HA_ERR_ERRORS * sizeof(char*),
87
 
                                           MYF(MY_WME | MY_ZEROFILL))))
 
86
  if (! (errmsgs= (const char**) malloc(HA_ERR_ERRORS * sizeof(char*))))
88
87
    return 1;
 
88
  memset(errmsgs, 0, HA_ERR_ERRORS * sizeof(char *));
89
89
 
90
90
  /* Set the dedicated error messages. */
91
91
  SETMSG(HA_ERR_KEY_NOT_FOUND,          ER(ER_KEY_NOT_FOUND));
1035
1035
  for (info.len= MAX_XID_LIST_SIZE ;
1036
1036
       info.list==0 && info.len > MIN_XID_LIST_SIZE; info.len/=2)
1037
1037
  {
1038
 
    info.list=(XID *)my_malloc(info.len*sizeof(XID), MYF(0));
 
1038
    info.list=(XID *)malloc(info.len*sizeof(XID));
1039
1039
  }
1040
1040
  if (!info.list)
1041
1041
  {