Changeset: 48becf736621 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=48becf736621
Modified Files:
        gdk/gdk_heap.c
Branch: Dec2016
Log Message:

Clear the correct bit of memory.
Note, this only occurred in debug (--enable-assert) builds.


diffs (21 lines):

diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -504,7 +504,7 @@ GDKupgradevarheap(BAT *b, var_t v, int c
                break;
        case 4:
 #ifndef NDEBUG
-               memset(ps, 0, b->theap.base + b->theap.size - (char *) pi);
+               memset(pi, 0, b->theap.base + b->theap.size - (char *) pi);
 #endif
                switch (b->twidth) {
                case 1:
@@ -520,7 +520,7 @@ GDKupgradevarheap(BAT *b, var_t v, int c
 #if SIZEOF_VAR_T == 8
        case 8:
 #ifndef NDEBUG
-               memset(ps, 0, b->theap.base + b->theap.size - (char *) pv);
+               memset(pv, 0, b->theap.base + b->theap.size - (char *) pv);
 #endif
                switch (b->twidth) {
                case 1:
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to