~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/memory/root.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 14:19:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622141944-na0vb0uv30n6u55z
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
 
132
132
  void* calloc(size_t size)
133
133
  {
134
 
    void* ptr= alloc_root(size);
 
134
    void* ptr= alloc(size);
135
135
    memset(ptr, 0, size);
136
136
    return ptr;
137
137
  }