c8fef35d2c0f637727a648fed97fa95b1242a323 tdreszer Thu Jul 21 17:13:06 2011 -0700 Minor fixes to sizes of hash used by cv.ra diff --git src/hg/lib/cv.c src/hg/lib/cv.c index a543e8e..d46c89b 100644 --- src/hg/lib/cv.c +++ src/hg/lib/cv.c @@ -101,31 +101,31 @@ errAbort("Error: can't locate %s; %s doesn't exist\n", CV_FILE_NAME, filePath); return filePath; } const struct hash *cvTermHash(const char *term) // returns a hash of hashes of a term which should be defined in cv.ra // NOTE: in static memory: DO NOT FREE { static struct hash *cvHashOfHashOfHashes = NULL; if (sameString(term,CV_TERM_CELL)) term = CV_UGLY_TERM_CELL_LINE; else if (sameString(term,CV_TERM_ANTIBODY)) term = CV_UGLY_TERM_ANTIBODY; if (cvHashOfHashOfHashes == NULL) - cvHashOfHashOfHashes = hashNew(0); + cvHashOfHashOfHashes = hashNew(4); struct hash *cvHashForTerm = hashFindVal(cvHashOfHashOfHashes,(char *)term); // Establish cv hash of Term Types if it doesn't already exist if (cvHashForTerm == NULL) { cvHashForTerm = raReadWithFilter((char *)cvFile(), CV_TERM,CV_TYPE,(char *)term); if (cvHashForTerm != NULL) hashAdd(cvHashOfHashOfHashes,(char *)term,cvHashForTerm); } return cvHashForTerm; } const struct hash *cvOneTermHash(const char *type,const char *term) // returns a hash for a single term of a given type