e1f6707123162e197537d28c3aa914fd0294bb0d chmalee Thu Jul 6 07:23:08 2023 -0700 Initialize primer strings to avoid compile error, refs build email diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index c8ca223..29952ed 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -7118,31 +7118,31 @@ } } lineFileClose(&lf); } void doPcrResult(char *track, char *item) /* Process click on PCR of user's primers. */ { struct trackDb *tdb = pcrResultFakeTdb(); char *pslFileName, *primerFileName; struct targetDb *target; cartWebStart(cart, database, "PCR Results"); if (! pcrResultParseCart(database, cart, &pslFileName, &primerFileName, &target)) errAbort("PCR Result track has disappeared!"); -char *fPrimer, *rPrimer; +char *fPrimer = NULL, *rPrimer = NULL; boolean targetSearch = stringIn("__", item) != NULL; if (targetSearch) { // use the psl file to find the right primer pair pslFileGetPrimers(pslFileName, item, &fPrimer, &rPrimer); } else { // the item name contains the forward and reverse primers int maxSplits = 2; char *splitQName[maxSplits]; int numSplits = chopString(cloneString(item), "_", splitQName, sizeof(splitQName)); if (numSplits == maxSplits) { fPrimer = splitQName[0];