Changeset: b51a662925ce for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b51a662925ce
Modified Files:
        monetdb5/extras/jaql/jaqlgencode.c
Branch: Jul2012
Log Message:

matchfuncsig: orgoff might be used unitialised (Coverity)

In case there are no columns, make sure we don't restore argoff to
garbage (orgoff) in case there was no match.


diffs (14 lines):

diff --git a/monetdb5/extras/jaql/jaqlgencode.c 
b/monetdb5/extras/jaql/jaqlgencode.c
--- a/monetdb5/extras/jaql/jaqlgencode.c
+++ b/monetdb5/extras/jaql/jaqlgencode.c
@@ -4950,8 +4950,8 @@ matchfuncsig(jc *j, Client cntxt, tree *
                if (idcmp(s->name, t->sval) == 0) {
                        char match = 0;
                        int itype;
-                       int argoff = 0;
-                       int orgoff, odyn1 = -1, odyn2 = -1, odyn3 = -1;
+                       int argoff = 0, orgoff = 0;
+                       int odyn1 = -1, odyn2 = -1, odyn3 = -1;
                        enum treetype ocoltype = j_invalid;
 
                        /* Function resolution is done based on the
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to