sourcepawn/compiler/sc1.c
changeset 4003 64238b77e22f
parent 3951 c3f26df2183f
child 4177 14bb936ba41f
     1.1 --- a/sourcepawn/compiler/sc1.c	Mon Aug 12 01:32:44 2013 +0100
     1.2 +++ b/sourcepawn/compiler/sc1.c	Mon Aug 12 01:33:04 2013 +0100
     1.3 @@ -3699,8 +3699,7 @@
     1.4      sym=addsym(name,code_idx,iFUNCTN,sGLOBAL,tag,0);
     1.5      assert(sym!=NULL);          /* fatal error 103 must be given on error */
     1.6      /* assume no arguments */
     1.7 -    sym->dim.arglist=(arginfo*)malloc(1*sizeof(arginfo));
     1.8 -    sym->dim.arglist[0].ident=0;
     1.9 +    sym->dim.arglist=(arginfo*)calloc(1, sizeof(arginfo));
    1.10      /* set library ID to NULL (only for native functions) */
    1.11      sym->x.lib=NULL;
    1.12      /* set the required stack size to zero (only for non-native functions) */