Changeset: 0346f0caae2a for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/0346f0caae2a Modified Files: monetdb5/mal/mal_profiler.c Branch: Jul2021_prof_ext Log Message:
Handle NULL value. diffs (14 lines): diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c --- a/monetdb5/mal/mal_profiler.c +++ b/monetdb5/mal/mal_profiler.c @@ -192,8 +192,8 @@ prepareNonMalEvent(Client cntxt, enum ev int sessionid = cntxt->idx; if (cntxt->curprg) tag = &cntxt->curprg->def->tag; - if (cntxt->query) - query = mal_quote(cntxt->query, strlen(cntxt->query)); + if (cntxt->query && ( query = mal_quote(cntxt->query, strlen(cntxt->query)) ) == NULL) + return NULL; if (!logadd(&logbuf, "{\"sessionid\":\"%d\"", sessionid)) goto cleanup_and_exit; _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org