Changeset: 9d8da457d4f1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9d8da457d4f1
Modified Files:
        sql/backends/monet5/sql_result.c
Branch: default
Log Message:

small defensive change


diffs (21 lines):

diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -1478,7 +1478,7 @@ mvc_export_table(backend *b, stream *s, 
 int
 mvc_export(mvc *m, stream *s, res_table *t, BUN nr)
 {
-       backend b;
+       backend b = {0};
        b.mvc = m;
        b.results = t;
        b.reloptimizer = 0;
@@ -1765,7 +1765,7 @@ mvc_export_head(backend *b, stream *s, i
 
        /* row count, min(count, reply_size) */
        /* the columnar protocol ignores the reply size by fetching the entire 
resultset at once, so don't set it */
-       if (mvc_send_int(s, (b->client->protocol != PROTOCOL_COLUMNAR && 
m->reply_size >= 0 && (BUN) m->reply_size < count) ? m->reply_size : (int) 
count) != 1)
+       if (mvc_send_int(s, (b->client && b->client->protocol != 
PROTOCOL_COLUMNAR && m->reply_size >= 0 && (BUN) m->reply_size < count) ? 
m->reply_size : (int) count) != 1)
                return -4;
 
        // export query id
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to