Changeset: a7a9a7e73f3f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a7a9a7e73f3f
Modified Files:
        sql/backends/monet5/datacell/opt_datacell.c
Branch: Aug2011
Log Message:

ensure variables are initialized before being used


diffs (16 lines):

diff --git a/sql/backends/monet5/datacell/opt_datacell.c 
b/sql/backends/monet5/datacell/opt_datacell.c
--- a/sql/backends/monet5/datacell/opt_datacell.c
+++ b/sql/backends/monet5/datacell/opt_datacell.c
@@ -46,9 +46,9 @@
     InstrPtr r, p, *old;
        str  col;
        int maxbasket= 128, m=0,a=0;
-       char *tables[128];
-       char *appends[128];
-       InstrPtr q[128], qa[128];
+       char *tables[128] = {NULL};
+       char *appends[128] = {NULL};
+       InstrPtr q[128], qa[128] = {NULL};
        lng clk,t;
        int *alias;
        char buf[BUFSIZ];
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to