~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Jay Pipes
  • Date: 2009-11-19 18:58:35 UTC
  • mto: (1223.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1224.
  • Revision ID: jpipes@serialcoder-20091119185835-o59wyfjiet3keutu
Fixes some valgrind warnings regarding conditionals depending on unintialized variables.  Use initializer lists properly, dang it. :) Also, removed the new_Cached_item() function's use_result_field, as this was only used for views and was producing a valgrind warning unnecessarily.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3423
3423
{
3424
3424
  if (s->blob_fields + s->varchar_fields == 0)
3425
3425
    return memcmp(this->record[0], this->record[1], (size_t) s->reclength);
 
3426
  
3426
3427
  /* Compare null bits */
3427
 
  if (memcmp(null_flags,
3428
 
             null_flags + s->rec_buff_length,
3429
 
             s->null_bytes))
3430
 
    return true;                                // Diff in NULL value
 
3428
  if (memcmp(null_flags, null_flags + s->rec_buff_length, s->null_bytes))
 
3429
    return true; /* Diff in NULL value */
 
3430
 
3431
3431
  /* Compare updated fields */
3432
3432
  for (Field **ptr= field ; *ptr ; ptr++)
3433
3433
  {