From e86c3dd2976b694b518f34a83bb737e78cddcd85 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 7 Apr 2013 20:48:52 +0200 Subject: [PATCH] sharedspice.c: remove bug causing sigsegv --- src/sharedspice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index 46c75292c..7be9dae42 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -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) {