From a94b8609ceba95b3bd345a66db504d7e42091ba8 Mon Sep 17 00:00:00 2001 From: Gabor Adam Toth Date: Mon, 23 May 2011 18:30:47 +0200 Subject: [PATCH] pkg-psyc: fix for psyc_render --- src/pkg-psyc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg-psyc.c b/src/pkg-psyc.c index 0bf4b16..6323761 100644 --- a/src/pkg-psyc.c +++ b/src/pkg-psyc.c @@ -216,11 +216,11 @@ f_psyc_render(svalue_t *sp) { v = sp->u.vec; if (VEC_SIZE(v) == PACKET_BODY + 1) { for (i = PACKET_ROUTING; i <= PACKET_ENTITY; i++) { + headers[i].lines = 0; if (v->item[i].type == T_MAPPING) { map = v->item[i].u.map; if (!MAP_SIZE(map)) continue; - headers[i].lines = 0; headers[i].modifiers = malloc(sizeof(psycModifier) * MAP_SIZE(v->item[i].u.map)); if (!headers[i].modifiers) { errorf("Out of memory in psyc_render for modifier table.\n");