Update of /cvsroot/monetdb/pathfinder/runtime
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13652/runtime

Modified Files:
      Tag: XQFT
        pf_support.mx 
Log Message:
propagated changes of Wednesday Dec 09 2009
from the development trunk to the XQFT branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/12/09 - sjoerd: runtime/pf_support.mx,1.339
  propagated changes of Friday Dec 04 2009 - Wednesday Dec 09 2009
  from the Nov2009 branch to the development trunk
  
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2009/12/04 - sjoerd: runtime/pf_support.mx,1.336.4.1
    Postpone dereference until after NULL check.
    Found by Coverity.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: pf_support.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pf_support.mx,v
retrieving revision 1.338
retrieving revision 1.338.2.1
diff -u -d -r1.338 -r1.338.2.1
--- pf_support.mx       15 Oct 2009 08:40:02 -0000      1.338
+++ pf_support.mx       9 Dec 2009 13:58:50 -0000       1.338.2.1
@@ -6072,12 +6072,13 @@
 int CMDxquery_hash_bat(BAT **res, BAT* b) {
     BUN cnt = BATcount(b);
     BAT *bn = *res = BATnew(TYPE_void, TYPE_int, cnt);
-    int *dst = (int*) Tloc(bn, BUNfirst(bn));
+    int *dst;
     BUN p, q;
     BATiter bi;
 
     if (bn == NULL) return GDK_FAIL;
     bi = bat_iterator(b);
+    dst = (int*) Tloc(bn, BUNfirst(bn));
     BATloop(b,p,q) {
         str val = (str) BUNtvar(bi,p);
         XQUERY_HASH(dst, val);


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to