Changeset: c7c373a2706e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c7c373a2706e
Modified Files:
monetdb5/modules/mal/tablet.c
Branch: Jul2021
Log Message:
small fix, should solve problem when one of the malloc's later fails
diffs (12 lines):
diff --git a/monetdb5/modules/mal/tablet.c b/monetdb5/modules/mal/tablet.c
--- a/monetdb5/modules/mal/tablet.c
+++ b/monetdb5/modules/mal/tablet.c
@@ -1571,7 +1571,7 @@ SQLload_file(Client cntxt, Tablet *as, b
assert(rsep);
assert(csep);
assert(maxrow < 0 || maxrow <= (lng) BUN_MAX);
- task.fields = (char ***) GDKmalloc(as->nr_attrs * sizeof(char **));
+ task.fields = (char ***) GDKzalloc(as->nr_attrs * sizeof(char **));
task.cols = (int *) GDKzalloc(as->nr_attrs * sizeof(int));
task.time = (lng *) GDKzalloc(as->nr_attrs * sizeof(lng));
if (task.fields == NULL || task.cols == NULL || task.time == NULL) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]