~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mulalloc.cc

  • Committer: Brian Aker
  • Date: 2009-05-11 17:50:22 UTC
  • Revision ID: brian@gaz-20090511175022-y35q9ky6uh9ldcjt
Replacing Sun employee copyright headers (aka... anything done by a Sun
employee is copyright by Sun).

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include "mysys_priv.h"
 
16
#include "mysys/mysys_priv.h"
17
17
#include <stdarg.h>
 
18
#include <string.h>
 
19
#include <stdlib.h>
18
20
 
19
21
/*
20
22
  Malloc many pointers at the same time
46
48
  }
47
49
  va_end(args);
48
50
 
49
 
  if (!(start=(char *) my_malloc(tot_length,myFlags)))
 
51
  if (!(start=(char *) malloc(tot_length)))
50
52
    return(0); /* purecov: inspected */
 
53
  if (myFlags & MY_ZEROFILL)
 
54
    memset(start, 0, tot_length);
51
55
 
52
56
  va_start(args,myFlags);
53
57
  res=start;