f952b14fca3833e9d8fef0ae8a086ad15485b552
galt
  Wed Jan 1 02:11:38 2025 -0800
fix various errors for utils compiled on Rocky 9 hgwdev-new.

diff --git src/hg/nci60/findStanAlignments.c src/hg/nci60/findStanAlignments.c
index 5476341..5baf307 100644
--- src/hg/nci60/findStanAlignments.c
+++ src/hg/nci60/findStanAlignments.c
@@ -133,33 +133,35 @@
 sprintf(buff, "%d", sm->clid);
 printf("Looking for %s\n", buff);
 ic = hashFindVal(iHash, buff);
 if(ic != NULL) 
     {
     /* first try looking for the image clones themselves... */
     for(i=0; i<ic->numGenbank; i++) 
 	{
 	char query[1024];
 	sqlSafef(query, sizeof query, "select * from all_est where qName='%s'", ic->genbankIds[i]);
 	pslList = pslLoadByQuery(conn, buff);
 	if(pslList != NULL) 
 	    {
 	    slSort(&pslList, pslCmpScore);	
 	    if(bestPsl == NULL || (pslScore(pslList) > pslScore(bestPsl)))
+		{
 		pslFree(&bestPsl);
 		bestPsl = copyPsl(pslList);
 		}
+	    }
 	
 	pslFreeList(&pslList);
 	}
 
     if(bestPsl != NULL)
 	{    
 	freez(&bestPsl->qName);
 	sprintf(buff, "%d", sm->clid);
 	bestPsl->qName = cloneString(buff);
 	pslTabOut(bestPsl,out);
 	}
     else 
 	{
 	fprintf(out, "%d\talignment unknown\n", sm->clid);
 	}