~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_sum.cc

Replacing all bzero() calls with memset() calls and removing the bzero.c file.
Also removing check for bzero from the 'configure.ac' autoconf file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1504
1504
  nr= args[0]->val_real();              /* sets null_value as side-effect */
1505
1505
 
1506
1506
  if (args[0]->null_value)
1507
 
    bzero(res,sizeof(double)*2+sizeof(int64_t));
 
1507
    memset(res, 0, sizeof(double)*2+sizeof(int64_t));
1508
1508
  else
1509
1509
  {
1510
1510
    /* Serialize format is (double)m, (double)s, (int64_t)count */
2039
2039
    double nr= args[0]->val_real();
2040
2040
 
2041
2041
    if (args[0]->null_value)
2042
 
      bzero(res,sizeof(double)+sizeof(int64_t));
 
2042
      memset(res, 0, sizeof(double)+sizeof(int64_t));
2043
2043
    else
2044
2044
    {
2045
2045
      int64_t tmp= 1;