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

Modified Files:
      Tag: Feb2010
        pftijah_stem.mx 
Log Message:
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.15
retrieving revision 1.15.14.1
diff -u -d -r1.15 -r1.15.14.1
--- pftijah_stem.mx     20 Apr 2009 23:30:46 -0000      1.15
+++ pftijah_stem.mx     10 Feb 2010 16:14:54 -0000      1.15.14.1
@@ -782,10 +782,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