sharedspice.c: remove bug causing sigsegv

This commit is contained in:
h_vogt 2013-04-07 20:48:52 +02:00 committed by rlar
parent c0eeb96dd9
commit e86c3dd297
1 changed files with 1 additions and 1 deletions

View File

@ -1539,7 +1539,6 @@ int sh_vecinit(runDesc *run)
data will be sent from sh_ExecutePerLoop() via datfcn() */
if (!curvecvalsall) {
curvecvalsall = TMALLOC(vecvaluesall, 1);
curvecvalsall->veccount = veccount;
}
else {
for (i = 0; i < curvecvalsall->veccount; i++)
@ -1547,6 +1546,7 @@ int sh_vecinit(runDesc *run)
tfree(curvecvalsall->vecsa);
}
curvecvalsall->veccount = veccount;
curvecvalsall->vecsa = TMALLOC(pvecvalues, veccount);
for (i = 0, d = cur_run->runPlot->pl_dvecs; i < veccount; i++, d = d->v_next) {