557843ecd649fa8222c713efd23fd9e471653784 max Wed Jan 30 09:09:43 2019 -0800 fixing a very obvious logic bug in sameTableOrHandler in hgc which I made myself and I have trouble believing that this has never been a problem before. refs #22838 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 34f1b1c..b82e38f 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -19504,31 +19504,31 @@ showSAM_T02(gbProtAnn->proteinId); printPos(seqName, gbProtAnn->chromStart, gbProtAnn->chromEnd, "+", TRUE, gbProtAnn->name); } printTrackHtml(tdb); sqlFreeResult(&sr); hFreeConn(&conn); } bool matchTableOrHandler(char *word, struct trackDb *tdb) /* return true if word matches either the table name or the trackHandler setting of the tdb struct */ { char* handler = trackDbSetting(tdb, "trackHandler"); -return (sameWord(word, tdb->table) || (handler==NULL || sameWord(word, handler))); +return (sameWord(word, tdb->table) || (handler!=NULL && sameWord(word, handler))); } void doLinkedFeaturesSeries(char *track, char *clone, struct trackDb *tdb) /* Create detail page for linked features series tracks */ { char query[256]; char title[256]; struct sqlConnection *conn = hAllocConn(database), *conn1 = hAllocConn(database); struct sqlResult *sr = NULL, *sr2 = NULL, *srb = NULL; char **row, **row1, **row2, **rowb; char *lfLabel = NULL; char *table = NULL; char *intName = NULL; char pslTable[HDB_MAX_TABLE_STRING]; int start = cartInt(cart, "o");