Changeset: 993c4c6e160a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=993c4c6e160a
Modified Files:
        monetdb5/mal/mal_box.c
Branch: Jan2014
Log Message:

Fix typo, causing errors


diffs (21 lines):

diff --git a/monetdb5/mal/mal_box.c b/monetdb5/mal/mal_box.c
--- a/monetdb5/mal/mal_box.c
+++ b/monetdb5/mal/mal_box.c
@@ -417,6 +417,8 @@ depositBox(Box box, str name, int type, 
                return 0;
        if (i < 0) {
                i = newVariable(box->sym, GDKstrdup(name), type);
+               if ( i < 0)
+                       return -1;
                if (box->val->stksize <= i)
                        box->val =reallocStack(box->val, STACKINCR);
        }
@@ -498,6 +500,8 @@ bindBAT(Box box, str name, str location)
                return 0;
        if (i < 0)
                i = newVariable(box->sym, GDKstrdup(name), TYPE_any);
+       if ( i< 0)
+               return -1;
        v = &box->val->stk[i];
        v->val.bval = BBPindex(location);
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to