~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mulalloc.cc

  • Committer: Monty Taylor
  • Date: 2008-12-07 23:42:51 UTC
  • mto: This revision was merged to the branch mainline in revision 670.
  • Revision ID: monty@inaugust.com-20081207234251-yxtbg06jpylwej29
Finally removed all of the my_malloc stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#include "mysys_priv.h"
17
17
#include <stdarg.h>
 
18
#include <string.h>
18
19
 
19
20
/*
20
21
  Malloc many pointers at the same time
46
47
  }
47
48
  va_end(args);
48
49
 
49
 
  if (!(start=(char *) my_malloc(tot_length,myFlags)))
 
50
  if (!(start=(char *) malloc(tot_length)))
50
51
    return(0); /* purecov: inspected */
 
52
  if (myFlags & MY_ZEROFILL)
 
53
    memset(start, 0, tot_length);
51
54
 
52
55
  va_start(args,myFlags);
53
56
  res=start;