~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/cursor.cc

Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
{
97
97
  unsigned char *copy;
98
98
 
99
 
  copy= (unsigned char *)malloc(table->s->reclength);
 
99
  copy= (unsigned char *)calloc(table->s->reclength, sizeof(unsigned char));
 
100
  assert(copy);
100
101
  memcpy(copy, record, table->s->reclength);
101
102
  row_cache.push_back(copy);
102
103
  internal::my_store_ptr(ref, ref_length, record_id);