Changeset: 2f5bf463a475 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2f5bf463a475
Modified Files:
        monetdb5/modules/mal/wlc.c
Branch: Mar2018
Log Message:

Fix compilation error


diffs (35 lines):

diff --git a/monetdb5/modules/mal/wlc.c b/monetdb5/modules/mal/wlc.c
--- a/monetdb5/modules/mal/wlc.c
+++ b/monetdb5/modules/mal/wlc.c
@@ -601,9 +601,11 @@ WLCgeneric(Client cntxt, MalBlkPtr mb, M
 static str
 WLCdatashipping(Client cntxt, MalBlkPtr mb, InstrPtr pci, int bid)
 {      BAT *b;
-       str sch,tbl,col, msg = MAL_SUCCEED;
+       str sch = NULL, tbl = NULL, col = NULL;
+       str msg = MAL_SUCCEED;
        (void) mb;
-       b= BATdescriptor(bid);
+
+       b = BATdescriptor(bid);
        if (b == NULL) {
                msg = createException(MAL, "wlc.datashipping", SQLSTATE(HY002) 
RUNTIME_OBJECT_MISSING);
                goto finish;
@@ -655,13 +657,13 @@ WLCdatashipping(Client cntxt, MalBlkPtr 
                cntxt->wlc_kind = WLC_CATALOG;
        }
 finish:
-       if(b)
+       if (b != NULL)
                BBPunfix(b->batCacheid);
-       if(sch)
+       if (sch)
                GDKfree(sch);
-       if(tbl)
+       if (tbl)
                GDKfree(tbl);
-       if(col)
+       if (col)
                GDKfree(col);
        return msg;
 }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to