- A couple of small fixes for memory and initialization problems.

This is to make valgrind happy


SKIPPED:
	psi/amorscan.c
	psi/el734hp.c
	psi/psi.c
	psi/tasscan.c
This commit is contained in:
koennecke
2005-01-12 08:42:39 +00:00
parent 5e05be17e0
commit ef1de4589c
35 changed files with 2659 additions and 1203 deletions

View File

@@ -322,7 +322,7 @@ typedef struct {
if(pVar)
{
fVal = pVar->pInter->GetValue(pVar->pObject,self->pCon);
pVar->fData[iPoint] = fVal;
AppendScanVar(pVar,fVal);
sprintf(pItem,"%-10.10s",pVar->Name);
strcat(pHead,pItem);
sprintf(pItem,"%-10.3f",fVal);
@@ -419,8 +419,7 @@ static float determineStepWidth(pMesure self, float two_theta)
}
/*
check if we are really there. All this only because Jurg
does not fix his rotten cradle.
check if we are really there.
*/
CalculateSettings(self->pCryst,fHKL,fPsi,0,fSet,pCon);
for(i = 0; i < 4; i++)
@@ -503,8 +502,7 @@ static float determineStepWidth(pMesure self, float two_theta)
}
/*
check if we are really there. All this only because Jurg
does not fix his rotten cradle.
check if we are really there.
*/
for(i = 0; i < 4; i++)
{