Changeset: b5c648a726cf for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b5c648a726cf
Modified Files:
monetdb5/optimizer/opt_mergetable.c
Branch: resource_management
Log Message:
use zalloc to initialize array
diffs (12 lines):
diff --git a/monetdb5/optimizer/opt_mergetable.c
b/monetdb5/optimizer/opt_mergetable.c
--- a/monetdb5/optimizer/opt_mergetable.c
+++ b/monetdb5/optimizer/opt_mergetable.c
@@ -2285,7 +2285,7 @@ OPTmergetableImplementation(Client cntxt
vars = (int *) ma_alloc(cntxt->ta, sizeof(int) * mb->vtop);
//maxvars = mb->vtop;
- group_input = (char *) ma_alloc(cntxt->ta, sizeof(char) * mb->vtop);
+ group_input = (char *) ma_zalloc(cntxt->ta, sizeof(char) * mb->vtop);
if (vars == NULL || group_input == NULL) {
ma_close(cntxt->ta);
throw(MAL, "optimizer.mergetable", SQLSTATE(HY013)
MAL_MALLOC_FAIL);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]