Changeset: bf85a4f1f1fc for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/bf85a4f1f1fc
Modified Files:
        monetdb5/modules/kernel/batmmath.c
Branch: Jun2023
Log Message:

Fix scope.


diffs (15 lines):

diff --git a/monetdb5/modules/kernel/batmmath.c 
b/monetdb5/modules/kernel/batmmath.c
--- a/monetdb5/modules/kernel/batmmath.c
+++ b/monetdb5/modules/kernel/batmmath.c
@@ -95,9 +95,10 @@ CMDscienceUNARY(MalStkPtr stk, InstrPtr 
        BBPreclaim(s);
        if (e != 0 || ex != 0) {
                const char *err;
+               char buf[128];
                BBPunfix(bn->batCacheid);
                if (e)
-                       err = GDKstrerror(e, (char[128]) { 0 }, 128);
+                       err = GDKstrerror(e, buf, 128);
                else if (ex & FE_DIVBYZERO)
                        err = "Divide by zero";
                else if (ex & FE_OVERFLOW)
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to