Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4624
Modified Files:
Tag: Feb2010
serialize_pftijah.mx
Log Message:
fix for bug PFTIJAH: whitelist in "_param" bat incomplete - ID: 2929885
Index: serialize_pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/serialize_pftijah.mx,v
retrieving revision 1.83
retrieving revision 1.83.2.1
diff -u -d -r1.83 -r1.83.2.1
--- serialize_pftijah.mx 26 Dec 2009 10:57:51 -0000 1.83
+++ serialize_pftijah.mx 1 Feb 2010 15:31:20 -0000 1.83.2.1
@@ -659,25 +659,30 @@
/* determine kind of filtering */
if ( strcmp(kind,"whitelist")==0 )
- tjctx->whitelisting = 1;
- else
+ tjctx->whitelisting = 1;
+ else
tjctx->whitelisting = 0;
+ if ( !(l = GDKstrdup(l)) ) {
+ GDKerror("init_tagFiltering: out of memory\n");
+ return 0;
+ }
/* read the tags */
if ( (t = strtok(l,delchars2)) ) do {
- /* not the empty string here */
- if ( cnt++ == 0 ) {
- tjctx->b_filtering = BATmirror(BAThash(BATmirror(
- BATnew(TYPE_void, TYPE_str,32)),0));
- if ( !tjctx->b_filtering ) {
- return 0;
- }
- }
- str v = (str)t;
- oid my_oid_nil = oid_nil;
- if ( !BUNins(tjctx->b_filtering, &my_oid_nil, v, FALSE) )
- return 0;
+ /* not the empty string here */
+ if ( cnt++ == 0 ) {
+ tjctx->b_filtering = BATmirror(BAThash(BATmirror(
+ BATnew(TYPE_void, TYPE_str,32)),0));
+ if ( !tjctx->b_filtering ) {
+ return 0;
+ }
+ }
+ str v = (str)t;
+ oid my_oid_nil = oid_nil;
+ if ( !BUNins(tjctx->b_filtering, &my_oid_nil, v, FALSE) )
+ return 0;
} while ( (t=strtok(NULL,delchars2)) );
+ GDKfree(l);
/* set runtime status variables */
tjctx->filterDepth = 0;
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins