~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/compression/compress.cc

  • Committer: Olaf van der Spek
  • Date: 2011-05-05 11:49:51 UTC
  • mto: This revision was merged to the branch mainline in revision 2306.
  • Revision ID: olafvdspek@gmail.com-20110505114951-tt45awrgnmkepvuf
Return void

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
  new_size= res->length() + res->length() / 5 + 12;
59
59
 
60
60
  // Check new_size overflow: new_size <= res->length()
61
 
  if (((uint32_t) (new_size+5) <= res->length()) ||
62
 
      buffer.realloc((uint32_t) new_size + 4 + 1))
 
61
  if ((uint32_t) (new_size+5) <= res->length())
63
62
  {
64
63
    null_value= 1;
65
64
    return 0;
66
65
  }
 
66
  buffer.realloc((uint32_t) new_size + 4 + 1);
67
67
 
68
68
  body= ((Byte*)buffer.ptr()) + 4;
69
69