Changeset: 7332d77e7210 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7332d77e7210
Modified Files:
        monetdb5/extras/rdf/rdflabels.c
        sql/backends/monet5/sql_rdf_jgraph.c
Branch: rdf
Log Message:

Minor


diffs (29 lines):

diff --git a/monetdb5/extras/rdf/rdflabels.c b/monetdb5/extras/rdf/rdflabels.c
--- a/monetdb5/extras/rdf/rdflabels.c
+++ b/monetdb5/extras/rdf/rdflabels.c
@@ -1418,7 +1418,7 @@ void getTableName(CSlabel* label, CSset*
        int             tmpListCount;
        char            nameFound = 0;
        oid             maxDepthOid;
-       int             maxFreq;
+       int             maxFreq = 0;
        
        #if TYPE_TFIDF_RANKING  
        oid             maxRankscoreOid; 
diff --git a/sql/backends/monet5/sql_rdf_jgraph.c 
b/sql/backends/monet5/sql_rdf_jgraph.c
--- a/sql/backends/monet5/sql_rdf_jgraph.c
+++ b/sql/backends/monet5/sql_rdf_jgraph.c
@@ -864,9 +864,10 @@ int have_same_subj(jgraph *jg, int from,
 static
 void connect_same_subj_node(jgraph *jg){
        int nnode = jg->nNode; 
-
-       for (int from = 0; from < nnode; from++){
-               for (int to = (from + 1); to < nnode; to++){
+       int from = 0, to = 0; 
+
+       for (from = 0; from < nnode; from++){
+               for (to = (from + 1); to < nnode; to++){
                        if (have_same_subj(jg, from, to) == 1){
                                JP tmpjp = JP_S;
                                add_undirectedJGedge(from, to, op_join, jg, 
NULL, tmpjp, -1, -1, 0);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to