9aad0c71c8101b3566c50714139e3e6369ccc0a2 braney Fri Jun 3 11:57:47 2022 -0700 fix a long-term problem in bigBed search. Why didn't we see this earlier? diff --git src/hg/lib/bigBedFind.c src/hg/lib/bigBedFind.c index 324972b..9ffd17f 100644 --- src/hg/lib/bigBedFind.c +++ src/hg/lib/bigBedFind.c @@ -134,31 +134,31 @@ if (hfs) { char buf[2048]; if (isNotEmpty(hfs->searchDescription)) truncatef(buf, sizeof(buf), "%s", hfs->searchDescription); else safef(buf, sizeof(buf), "%s", hfs->searchTable); description = cloneString(buf); } struct trackDb *tdb; boolean found = FALSE; for(tdb=tdbList; tdb; tdb = tdb->next) { if (tdb->subtracks) { - found = findBigBedPosInTdbList(cart, db, tdbList->subtracks, term, hgp, hfs) || found; + found = findBigBedPosInTdbList(cart, db, tdb->subtracks, term, hgp, hfs) || found; continue; } if (startsWith("bigWig", tdb->type) || !startsWith("big", tdb->type)) continue; // Which field(s) to search? Look for searchIndex in search spec, then in trackDb for // backwards compat. char *indexField = NULL; if (hfs) indexField = hgFindSpecSetting(hfs, "searchIndex"); if (!indexField) indexField = trackDbSetting(tdb, "searchIndex"); if (!indexField && !hfs) continue;