Changeset: bb37afda7a6e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bb37afda7a6e
Modified Files:
        monetdb5/mal/mal_dataflow.c
Branch: Feb2013
Log Message:

mal_dataflow.c: initialize arrays


diffs (16 lines):

diff --git a/monetdb5/mal/mal_dataflow.c b/monetdb5/mal/mal_dataflow.c
--- a/monetdb5/mal/mal_dataflow.c
+++ b/monetdb5/mal/mal_dataflow.c
@@ -83,9 +83,9 @@ typedef struct DATAFLOW {
 } *DataFlow, DataFlowRec;
 
 #define MAXQ 1024
-static MT_Id workers[THREADS];
-static int workerqueue[THREADS]; /* maps workers towards the todo queues */
-static Queue *todo[MAXQ];      /* pending instructions organized by user 
MAXTODO > #users */
+static MT_Id workers[THREADS] = {0};
+static int workerqueue[THREADS] = {0}; /* maps workers towards the todo queues 
*/
+static Queue *todo[MAXQ] = {0};        /* pending instructions organized by 
user MAXTODO > #users */
 
 /*
  * Calculate the size of the dataflow dependency graph.
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to