Changeset: c66da0d72f94 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c66da0d72f94
Modified Files:
        sql/backends/monet5/datacell/emitter.c
        sql/backends/monet5/datacell/petrinet.c
        sql/backends/monet5/datacell/receptor.c
Branch: default
Log Message:

datacell: fixed optimized compilation by initializing variables
that otherwise might be used uninitialized


diffs (36 lines):

diff --git a/sql/backends/monet5/datacell/emitter.c 
b/sql/backends/monet5/datacell/emitter.c
--- a/sql/backends/monet5/datacell/emitter.c
+++ b/sql/backends/monet5/datacell/emitter.c
@@ -448,7 +448,7 @@ str
 EMtable(int *nameId, int *hostId, int *portId, int *protocolId, int *modeId, 
int *statusId, int *seenId, int *cyclesId, int *sentId, int *pendingId)
 {
        BAT *name = NULL, *seen = NULL, *pending = NULL, *sent = NULL, *cycles 
= NULL;
-       BAT *protocol, *mode, *status, *port, *host;
+       BAT *protocol = NULL, *mode = NULL, *status = NULL, *port = NULL, *host 
= NULL;
        Emitter em = emAnchor;
 
        name = BATnew(TYPE_oid, TYPE_str, BATTINY);
diff --git a/sql/backends/monet5/datacell/petrinet.c 
b/sql/backends/monet5/datacell/petrinet.c
--- a/sql/backends/monet5/datacell/petrinet.c
+++ b/sql/backends/monet5/datacell/petrinet.c
@@ -459,7 +459,7 @@ PNanalysis(Client cntxt, MalBlkPtr mb)
 static void
 PNcontroller(void *dummy)
 {
-       int idx, i, j, cnt = 0;
+       int idx = -1, i, j, cnt = 0;
        Symbol s;
        InstrPtr p;
        MalStkPtr glb;
diff --git a/sql/backends/monet5/datacell/receptor.c 
b/sql/backends/monet5/datacell/receptor.c
--- a/sql/backends/monet5/datacell/receptor.c
+++ b/sql/backends/monet5/datacell/receptor.c
@@ -699,7 +699,7 @@ str
 RCtable(int *nameId, int *hostId, int *portId, int *protocolId, int *modeId, 
int *statusId, int *seenId, int *cyclesId, int *receivedId, int *pendingId)
 {
        BAT *name = NULL, *seen = NULL, *pending = NULL, *received = NULL, 
*cycles = NULL;
-       BAT *protocol, *mode, *status, *port, *host;
+       BAT *protocol = NULL, *mode = NULL, *status = NULL, *port = NULL, *host 
= NULL;
        Receptor rc = rcAnchor;
 
        name = BATnew(TYPE_oid, TYPE_str, BATTINY);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to