~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mulalloc.cc

merge with the latest code from the trunk

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>
 
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;