Changeset: 8d17fa02d60d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8d17fa02d60d
Modified Files:
sql/backends/monet5/sql_gencode.c
Branch: default
Log Message:
fixed compilation problems on clang-mac
diffs (21 lines):
diff --git a/sql/backends/monet5/sql_gencode.c
b/sql/backends/monet5/sql_gencode.c
--- a/sql/backends/monet5/sql_gencode.c
+++ b/sql/backends/monet5/sql_gencode.c
@@ -425,7 +425,7 @@ static int
}
pushInstruction(curBlk, p);
- char *mal_session_uuid, *err;
+ char *mal_session_uuid, *err = NULL;
if (!GDKinmemory() && (err = msab_getUUID(&mal_session_uuid)) == NULL) {
str rsupervisor_session = GDKstrdup(mal_session_uuid);
if (rsupervisor_session == NULL) {
@@ -491,7 +491,7 @@ static int
free(rworker_plan_uuid); /* This was created with strdup */
GDKfree(lsupervisor_session);
GDKfree(rsupervisor_session);
- } else
+ } else if (err)
free(err);
/* (x1, x2, ..., xn) := remote.exec(q, "mod", "fcn"); */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list