707be2c2ca84a40476ac4c6dd0243141f2f305fe tdreszer Fri Oct 29 14:43:16 2010 -0700 Fixed sizing of whiteList array diff --git src/hg/lib/mdb.c src/hg/lib/mdb.c index 31a3329..158746e 100644 --- src/hg/lib/mdb.c +++ src/hg/lib/mdb.c @@ -2209,32 +2209,31 @@ {"rnaExtract" ,"RNA Extract" ,TRUE ,TRUE }, {"seqPlatform" ,"Sequencing Platform" ,TRUE ,TRUE }, {"setType" ,"Experiment or Input" ,TRUE ,FALSE}, {"sex" ,"Sex of organism" ,TRUE ,TRUE }, // really want to link to this? //{"size" ,"Mapability windowing size" ,FALSE,FALSE}, // Used in hg19 mapability only {"softwareVersion" ,"Lab specific informatics" ,TRUE ,FALSE}, {"strain" ,"Strain of organism" ,TRUE ,TRUE }, {"subId" ,"Submission Id" ,TRUE ,FALSE}, {"submittedDataVersion","Version of data if resubmitted" ,FALSE,FALSE}, {"tableName" ,"Name of msql table at UCSC" ,FALSE,FALSE}, {"treatment" ,"Treatment" ,TRUE ,TRUE }, //{"type" ,"Data Format type" ,FALSE,FALSE}, // Used rarely in hg18 to distinguish wig and bedGraph //{"uniqueness" ,"Number of mismatches tolerated" ,FALSE,FALSE}, // Used in hg19 mapability only {"view" ,"View - Peaks or Signals" ,TRUE ,FALSE}, }; - -int ix,size = sizeof(whiteList); +int ix,size = sizeof(whiteList)/sizeof(struct cvTerms); struct slPair *whitePairs = NULL; for(ix=0;ix<size;ix++) { if (searchTracks && !whiteList[ix].searchable) continue; if (cvLinks && !whiteList[ix].cvTerm) continue; slPairAdd(&whitePairs, whiteList[ix].term, cloneString(whiteList[ix].title)); } if (whitePairs != NULL) slPairValSortCase(&whitePairs); return whitePairs; }