f073f78c136793c533aa903387ca622b4f2203c6 angie Fri Feb 23 10:18:29 2018 -0800 Fixing compiler -O warning about uninitialized variables. diff --git src/hg/hgTracks/interactTrack.c src/hg/hgTracks/interactTrack.c index e519d3e..b9c5228 100644 --- src/hg/hgTracks/interactTrack.c +++ src/hg/hgTracks/interactTrack.c @@ -110,32 +110,32 @@ char *otherChrom = interactOtherChrom(inter); safef(itemBuf, sizeof itemBuf, "%s", inter->name); struct dyString *ds = dyStringNew(0); dyStringPrintf(ds, "%s", inter->name); if (inter->score) dyStringPrintf(ds, " %d", inter->score); char *statusBuf = dyStringCannibalize(&ds); color = interactItemColor(tg, inter, hvg); // TODO: simplify by using start/end instead of center and width // This is a holdover from longRange track implementation unsigned lowStart, lowEnd, highStart, highEnd; if (otherChrom) { - lowStart = inter->chromStart; - lowEnd = inter->chromEnd; + lowStart = highStart = inter->chromStart; + lowEnd = highEnd = inter->chromEnd; } else if (inter->sourceStart < inter->targetStart) { lowStart = inter->sourceStart; lowEnd = inter->sourceEnd; highStart = inter->targetStart; highEnd = inter->targetEnd; } else { lowStart = inter->targetStart; lowEnd = inter->targetEnd; highStart = inter->sourceStart; highEnd = inter->sourceEnd; }