06571741ba5844ec3dfaba611d3ce29970fa6b0b braney Wed Mar 8 13:11:22 2023 -0800 adding back a couple of lines that were inadvertantly deleted in da6e1451531ba0147ba54f531361515e55fde9af diff --git src/hg/lib/hgMaf.c src/hg/lib/hgMaf.c index 631adc9..f6a6a75 100644 --- src/hg/lib/hgMaf.c +++ src/hg/lib/hgMaf.c @@ -304,30 +304,32 @@ if ((org = hashFindVal(orgHash, orgName)) == NULL) // couldn't find this org { e = strchr(e + 1, '.'); // look for another dot following the first dot if (e != NULL) { // if we found a dot, try the longer name len = e - mc->src; if (len >= sizeof(buf)) errAbort("organism/database name %s too long", mc->src); memcpy(buf, mc->src, len); buf[len] = 0; org = hashFindVal(orgHash, orgName); } } } + else + org = hashFindVal(orgHash, orgName); } /* create a new org if necessary. */ if (org == NULL) { if (orderList != NULL) errAbort("%s is not in orderList", orgName); AllocVar(org); slAddHead(&orgList, org); hashAddSaveName(orgHash, orgName, org, &org->name); org->dy = dyStringNew(native->size*1.5); dyStringAppendMultiC(org->dy, '.', symCount); if (nativeOrg == NULL) nativeOrg = org; }