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

Modified Files:
        pftijah_stem.mx 
Log Message:
propagated changes of Wednesday Feb 10 2010 - Friday Feb 12 2010
from the Feb2010 branch to the development trunk

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2010/02/10 - sjoerd: modules/pftijah/pftijah_stem.mx,1.15.14.1
  Accept a NULL name, since that can happen in loadTijahContext.
  Found by Coverity.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: pftijah_stem.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah_stem.mx,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- pftijah_stem.mx     15 Jan 2010 15:54:03 -0000      1.16
+++ pftijah_stem.mx     12 Feb 2010 10:25:59 -0000      1.17
@@ -776,10 +776,11 @@
  */
 
 tjStemCtx* getStemmingContext(char* name) {
-       (void) name;
        tjStemCtx* res;
 
-       if ( strcmp(name,"nostemming")==0 )
+       if (name == NULL)
+           res = & nostemming;
+       else if ( strcmp(name,"nostemming")==0 )
            res = & nostemming;
        else if ( strcmp(name,"default")==0 )
            res = & nostemming;


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to