Changeset: ef047a97bbad for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ef047a97bbad
Modified Files:
        monetdb5/mal/mal_client.c
Branch: Sep2022
Log Message:

Don't dereference a NULL pointer.


diffs (17 lines):

diff --git a/monetdb5/mal/mal_client.c b/monetdb5/mal/mal_client.c
--- a/monetdb5/mal/mal_client.c
+++ b/monetdb5/mal/mal_client.c
@@ -309,9 +309,10 @@ MCinitClient(oid user, bstream *fin, str
        }
        MT_lock_unset(&mal_contextLock);
 
-       profilerEvent(NULL,
-                                 &(struct NonMalEvent)
-                                 {CLIENT_START, c, c->session,  NULL, NULL, 0, 
0});
+       if (c)
+               profilerEvent(NULL,
+                                         &(struct NonMalEvent)
+                                         {CLIENT_START, c, c->session,  NULL, 
NULL, 0, 0});
        return c;
 }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to