~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_check.c

  • Committer: Monty Taylor
  • Date: 2008-12-09 00:42:04 UTC
  • mto: This revision was merged to the branch mainline in revision 670.
  • Revision ID: monty@inaugust.com-20081209004204-b72gor166jmeufpc
More malloc return check fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3326
3326
          MI_DYN_DELETE_BLOCK_HEADER;
3327
3327
        if (sort_info->buff_length < reclength)
3328
3328
        {
3329
 
          if (!(sort_info->buff=
3330
 
              (sort_info->buff) ? realloc(sort_info->buff, reclength)
3331
 
                                : malloc(reclength)))
3332
 
          sort_info->buff_length=reclength;
 
3329
          void *tmpptr= NULL;
 
3330
          if (!(tmpptr= realloc(sort_info->buff, reclength)))
 
3331
            sort_info->buff_length=reclength;
3333
3332
        }
3334
3333
        from= sort_info->buff+ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER);
3335
3334
      }