ac1d74beb9b3375d12cafb58ff756d531e928fec braney Thu May 15 16:09:49 2014 -0700 fix bug with crashing hgc pages #13262 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index e369051..1c799af 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -24139,31 +24139,31 @@ printf("Link to block in other species
\n", otherDb, qName, qs, qe,hubName,trackHubSkipHubName(database)); int qCenter = (qs + qe) / 2; int newQs = qCenter - qWidth/2; int newQe = qCenter + qWidth/2; printf("Link to same window size in other species
\n", otherDb, qName, newQs, newQe,hubName,trackHubSkipHubName(database)); } bool vsameWords(char *a, va_list args) /* returns true if a is sameWord as any arg, all args must be char* */ { bool found = FALSE; char *b; while ((b = va_arg(args, char *)) != NULL) { - if sameWord(a, b) + if (sameWord(a, b)) { found = TRUE; break; } } return found; } bool sameAltWords(char *a, char *b, ...) /* returns true if a is sameWord as any of the variables or b is sameWord as any of them */ { va_list args; va_start(args, b); bool res = vsameWords(a, args); va_end(args); @@ -24880,31 +24880,31 @@ { doUniGene3(tdb, item); } else if (sameWord(table, "vax003") || sameWord(table, "vax004")) { doVax003Vax004(tdb, item); } else if (sameWord(table, "tigrGeneIndex")) { doTigrGeneIndex(tdb, item); } //else if ((sameWord(table, "bacEndPairs")) || (sameWord(table, "bacEndPairsBad")) || (sameWord(table, "bacEndPairsLong")) || (sameWord(table, "bacEndSingles"))) //{ //doLinkedFeaturesSeries(table, item, tdb); //} -else if (sameAltWords(table, handler, "bacEndPairs", "bacEndPairsBad", "bacEndPairsLong", "bacEndSingles")) +else if (sameAltWords(table, handler, "bacEndPairs", "bacEndPairsBad", "bacEndPairsLong", "bacEndSingles", NULL)) { doLinkedFeaturesSeries(table, item, tdb); } else if ((sameWord(table, "fosEndPairs")) || (sameWord(table, "fosEndPairsBad")) || (sameWord(table, "fosEndPairsLong"))) { doLinkedFeaturesSeries(table, item, tdb); } else if ((sameWord(table, "earlyRep")) || (sameWord(table, "earlyRepBad"))) { doLinkedFeaturesSeries(table, item, tdb); } else if (sameWord(table, "cgh")) { doCgh(table, item, tdb); }