~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/column.c

  • Committer: Lee Bieber
  • Date: 2010-12-23 19:28:19 UTC
  • mfrom: (2023.1.2 build)
  • Revision ID: kalebral@gmail.com-20101223192819-8pt00lt7pw55evm6
Merge Monty - fix bug 687582: libdrizzle: performance: don't memset(0) drizzle_column_st
Merge Monty - clean up valgrind suppressions

Show diffs side-by-side

added added

removed removed

Lines of Context:
364
364
      return NULL;
365
365
    }
366
366
 
367
 
    memset(column, 0, sizeof(drizzle_column_st));
368
 
    column->options|= DRIZZLE_COLUMN_ALLOCATED;
 
367
    column->result = result;
 
368
    /* SET BELOW: column->next */
 
369
    column->prev = NULL;
 
370
    column->options= DRIZZLE_COLUMN_ALLOCATED;
 
371
    column->catalog[0] = '\0';
 
372
    column->db[0] = '\0';
 
373
    column->table[0] = '\0';
 
374
    column->orig_table[0] = '\0';
 
375
    column->name[0] = '\0';
 
376
    column->orig_name[0] = '\0';
 
377
    column->charset = 0;
 
378
    column->size = 0;
 
379
    column->max_size = 0;
 
380
    column->type = 0;
 
381
    column->flags = 0;
 
382
    column->decimals = 0;
 
383
    /* UNSET: column->default_value */
 
384
    column->default_value_size = 0;
 
385
 
369
386
  }
370
387
  else
371
 
    memset(column, 0, sizeof(drizzle_column_st));
 
388
  {
 
389
    column->result = result;
 
390
    /* SET BELOW: column->next */
 
391
    column->prev = NULL;
 
392
    column->options= 0;
 
393
    column->catalog[0] = '\0';
 
394
    column->db[0] = '\0';
 
395
    column->table[0] = '\0';
 
396
    column->orig_table[0] = '\0';
 
397
    column->name[0] = '\0';
 
398
    column->orig_name[0] = '\0';
 
399
    column->charset = 0;
 
400
    column->size = 0;
 
401
    column->max_size = 0;
 
402
    column->type = 0;
 
403
    column->flags = 0;
 
404
    column->decimals = 0;
 
405
    /* UNSET: column->default_value */
 
406
    column->default_value_size = 0;
 
407
  }
372
408
 
373
409
  column->result= result;
374
410