Changeset: 2115e51cbd98 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2115e51cbd98
Modified Files:
clients/mapilib/mapi.c
Branch: Jan2022
Log Message:
Pointer can be NULL in case of error, so check for it.
diffs (12 lines):
diff --git a/clients/mapilib/mapi.c b/clients/mapilib/mapi.c
--- a/clients/mapilib/mapi.c
+++ b/clients/mapilib/mapi.c
@@ -4358,7 +4358,7 @@ read_into_cache(MapiHdl hdl, int lookahe
for (;;) {
line = read_line(mid);
if (line == NULL) {
- if (mnstr_eof(mid->from)) {
+ if (mid->from && mnstr_eof(mid->from)) {
mapi_log_record(mid, "unexpected end of file");
mapi_log_record(mid, __func__);
close_connection(mid);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]