0e96ee09b21a249e40d9174682fb97c29bbe45df braney Mon Aug 15 19:44:59 2022 -0700 fix bug in recognizing old style filter names diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 315d671..bdbc419 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -6150,34 +6150,32 @@ struct hashEl *hel = hashLookup(tdb->isNewFilterHash, name); if (hel == NULL) return NULL; return hel->val; } char *getScoreNameAdd(struct trackDb *tdb, char *scoreName, char *add) // Add a suffix to a filter for more information { char scoreLimitName[1024]; char *name = cloneString(scoreName); char *dot = strchr(name, '.'); -if (dot == NULL) - return name; -if (isNewFilterType(tdb, dot+1) != NULL) +if ((dot != NULL) && (isNewFilterType(tdb, dot+1) != NULL)) { *dot++ = 0; safef(scoreLimitName, sizeof(scoreLimitName), "%s%s.%s", name, add, dot); } else safef(scoreLimitName, sizeof(scoreLimitName), "%s%s", scoreName, add); return cloneString(scoreLimitName); } static boolean getScoreLimitsFromTdb(struct trackDb *tdb, char *scoreName,char *defaults, char**min,char**max) // returns TRUE if limits exist and sets the string pointer (because they may be float or int) // if min or max are set, then they should be freed { if (min)