Changeset: beff9a530518 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/beff9a530518
Modified Files:
        gdk/gdk_string.c
Branch: Jul2021
Log Message:

no need to always check for valid UTF8 on strPut


diffs (16 lines):

diff --git a/gdk/gdk_string.c b/gdk/gdk_string.c
--- a/gdk/gdk_string.c
+++ b/gdk/gdk_string.c
@@ -315,10 +315,12 @@ strPut(BAT *b, var_t *dst, const void *V
        /* check that string is correctly encoded UTF-8; there was no
         * need to do this earlier: if the string was found above, it
         * must have gone through here in the past */
+#ifndef NDEBUG
        if (checkUTF8(v) != GDK_SUCCEED) {
                GDKerror("incorrectly encoded UTF-8\n");
                return 0;
        }
+#endif
 
        pad = GDK_VARALIGN - (h->free & (GDK_VARALIGN - 1));
        if (GDK_ELIMBASE(h->free + pad) == 0) { /* i.e. h->free+pad < 
GDK_ELIMLIMIT */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to