Changeset: 3cd4163d547b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3cd4163d547b
Modified Files:
        sql/backends/monet5/sql_statement.c
Branch: Mar2025
Log Message:

Fix coverity CID 1417165 issue.


diffs (31 lines):

diff --git a/sql/backends/monet5/sql_statement.c 
b/sql/backends/monet5/sql_statement.c
--- a/sql/backends/monet5/sql_statement.c
+++ b/sql/backends/monet5/sql_statement.c
@@ -2002,7 +2002,7 @@ select2_join2(backend *be, stmt *op1, st
 
                int r1 = op2->nr;
                int r2 = op3->nr;
-               int rs = 0;
+               /* int rs = 0; */
                q = newStmtArgs(mb, algebraRef, cmd, 12);
                if (q == NULL)
                        goto bailout;
@@ -2020,12 +2020,12 @@ select2_join2(backend *be, stmt *op1, st
                }
                if (sub) /* only for uselect2 */
                        q = pushArgument(mb, q, sub->nr);
-               if (rs) {
-                       q = pushArgument(mb, q, rs);
-               } else {
-                       q = pushArgument(mb, q, r1);
-                       q = pushArgument(mb, q, r2);
-               }
+               /* if (rs) { */
+                       /* q = pushArgument(mb, q, rs); */
+               /* } else { */
+               q = pushArgument(mb, q, r1);
+               q = pushArgument(mb, q, r2);
+               /* } */
                if (type == st_join2) {
                        q = pushNilBat(mb, q);
                        q = pushNilBat(mb, q);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to