~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/get_variable.cc

  • Committer: Monty Taylor
  • Date: 2008-12-04 19:56:07 UTC
  • mto: This revision was merged to the branch mainline in revision 649.
  • Revision ID: monty@inaugust.com-20081204195607-kktr72mx41kei6wz
Removed my_malloc from drizzled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    uint32_t size=ALIGN_SIZE(sizeof(user_var_entry))+name.length+1+extra_size;
37
37
    if (!hash_inited(hash))
38
38
      return 0;
39
 
    if (!(entry = (user_var_entry*) my_malloc(size,MYF(MY_WME | ME_FATALERROR))))
 
39
    if (!(entry = (user_var_entry*) malloc(size)))
40
40
      return 0;
41
41
    entry->name.str=(char*) entry+ ALIGN_SIZE(sizeof(user_var_entry))+
42
42
      extra_size;