Removed memset from glob_opts.h in the Matlab section
@@ -20,10 +20,8 @@ extern "C" {
/* define custom printfs and memory allocation (e.g. matlab/python) */
# ifdef MATLAB
# include "mex.h"
- # include <string.h> //for memset
static void* c_calloc(size_t num, size_t size) {
void *m = mxCalloc(num, size);
- if(m != NULL){memset(m,'\0',size);}
mexMakeMemoryPersistent(m);
return m;
}
