Changeset: 65d950312ade for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/65d950312ade
Modified Files:
        monetdb5/mal/mal_instruction.c
Branch: Aug2024
Log Message:

Reinitialize the whole variable struct.
This avoids a potential crash when using the stethoscope.


diffs (14 lines):

diff --git a/monetdb5/mal/mal_instruction.c b/monetdb5/mal/mal_instruction.c
--- a/monetdb5/mal/mal_instruction.c
+++ b/monetdb5/mal/mal_instruction.c
@@ -611,7 +611,9 @@ newVariable(MalBlkPtr mb, const char *na
                return -1;
        }
        n = mb->vtop;
-       mb->var[n].name = NULL;
+       mb->var[n] = (VarRecord) {
+               .name = NULL,
+       };
        if (name && len > 0) {
                char *nme = GDKmalloc(len+1);
                if (!nme) {
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to