Changeset: 0610557e7ceb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0610557e7ceb
Modified Files:
sql/backends/monet5/sql.c
Branch: fixed-width-format
Log Message:
fixed crash in fwf
diffs (12 lines):
diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -3518,6 +3518,8 @@ mvc_import_table_wrap(Client cntxt, MalB
/* overwrite other delimiters to the ones the FWF
stream uses */
sprintf((char*) tsep, "%c", STREAM_FWF_FIELD_SEP);
sprintf((char*) rsep, "%c", STREAM_FWF_RECORD_SEP);
+ if (!ssep)
+ ssep = GDKmalloc(2);
ssep[0] = 0;
ss = stream_fwf_create(ss, ncol, widths,
STREAM_FWF_FILLER);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list