Changeset: 251f8587b433 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/251f8587b433
Modified Files:
        monetdb5/mal/mal_exception.c
Branch: Mar2025
Log Message:

Only call va_end once on a va_list.


diffs (11 lines):

diff --git a/monetdb5/mal/mal_exception.c b/monetdb5/mal/mal_exception.c
--- a/monetdb5/mal/mal_exception.c
+++ b/monetdb5/mal/mal_exception.c
@@ -101,7 +101,6 @@ createExceptionInternal(enum malexceptio
                                                         exceptionNames[type], 
":", fcn, ":", NULL);
                if (len > 0)
                        (void) vsnprintf(msg + msglen, len + 1, format, ap2);
-               va_end(ap2);
                char *q = msg + strlen(msg);
                if (q[-1] != '\n') {
                        /* make sure message ends with newline, we already have 
the space */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to