Changeset: 06cce85577d7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=06cce85577d7
Modified Files:
        sql/backends/monet5/sql_scenario.c
Branch: default
Log Message:

Initialize variable after setjmp.


diffs (20 lines):

diff --git a/sql/backends/monet5/sql_scenario.c 
b/sql/backends/monet5/sql_scenario.c
--- a/sql/backends/monet5/sql_scenario.c
+++ b/sql/backends/monet5/sql_scenario.c
@@ -874,7 +874,7 @@ SQLparser(Client c)
        mvc *m;
        int oldvtop, oldstop;
        int pstatus = 0;
-       int err = 0, opt = 0, preparedid = -1;
+       int err = 0, opt, preparedid = -1;
 
        /* clean up old stuff */
        GDKfree(c->query);              /* may be NULL */
@@ -915,6 +915,7 @@ SQLparser(Client c)
 
                throw(SQL, "SQLparser", SQLSTATE(HY001) MAL_MALLOC_FAIL " for 
SQL allocator");
        }
+       opt = 0;
 
        m->emode = m_normal;
        m->emod = mod_none;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to