7f316821347265c823bf973b7466ad6236705cbe hiram Tue Dec 5 11:40:11 2017 -0800 fix uninitialized variable no redmine diff --git src/hg/lib/longRange.c src/hg/lib/longRange.c index b971f9a..171c576 100644 --- src/hg/lib/longRange.c +++ src/hg/lib/longRange.c @@ -60,31 +60,31 @@ } else *score = sqlDouble(ptr); return otherChrom; } struct longRange *parseLongTabix(struct bed *beds, unsigned *maxWidth, double minScore) /* Parse longTabix format into longRange structures */ { struct longRange *longRangeList = NULL; *maxWidth = 1; for(; beds; beds=beds->next) { double score; unsigned otherS, otherE; - unsigned rgb; + unsigned rgb = 0; boolean hasColor; char *otherChrom = getOther(beds, &otherS, &otherE, &hasColor, &score, &rgb); if (score < minScore) continue; struct longRange *longRange; AllocVar(longRange); slAddHead(&longRangeList, longRange); // don't have oriented feet at the moment longRange->sOrient = longRange->eOrient = 0; longRange->id = beds->score; // Id is field 5 in this format longRange->score = score; longRange->hasColor = hasColor; longRange->rgb = rgb; longRange->name = beds->name;