Changeset: 86d0d4fac776 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=86d0d4fac776
Modified Files:
        monetdb5/modules/kernel/microbenchmark.mx
Branch: Aug2011
Log Message:

fixed "error: 'bn' may be used uninitialized in this function"


diffs (39 lines):

diff --git a/monetdb5/modules/kernel/microbenchmark.mx 
b/monetdb5/modules/kernel/microbenchmark.mx
--- a/monetdb5/modules/kernel/microbenchmark.mx
+++ b/monetdb5/modules/kernel/microbenchmark.mx
@@ -353,7 +353,7 @@
 
 str
 MBMrandom(int *ret, oid *base, int *size, int *domain){
-       BAT *bn;
+       BAT *bn = NULL;
        
        BATrandom(&bn, base, size, domain);
        if( bn ){
@@ -365,7 +365,7 @@
 
 str
 MBMuniform(int *ret, oid *base, int *size, int *domain){
-       BAT *bn;
+       BAT *bn = NULL;
        
        BATuniform(&bn, base, size, domain);
        if( bn ){
@@ -377,7 +377,7 @@
 
 str
 MBMnormal(int *ret, oid *base, int *size, int *domain, int *stddev, int *mean){
-       BAT *bn;
+       BAT *bn = NULL;
        BATnormal(&bn, base, size, domain, stddev, mean);
        if( bn ){
                if (!(bn->batDirty&2)) bn = BATsetaccess(bn, BAT_READ);
@@ -419,7 +419,7 @@
 
 str
 MBMskewed(int *ret, oid *base, int *size, int *domain, int *skew){
-       BAT *bn;
+       BAT *bn = NULL;
        
        BATskewed(&bn, base, size, domain, skew);
        if( bn ){
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to