diff options
Diffstat (limited to '')
| -rw-r--r-- | project/src/lib-ctcode.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/project/src/lib-ctcode.c b/project/src/lib-ctcode.c index ed0e7b1..a24ecb2 100644 --- a/project/src/lib-ctcode.c +++ b/project/src/lib-ctcode.c @@ -17,7 +17,7 @@ * This file is part of the SZS project. * * Visit https://szs.wiimm.de/ for project details and sources. * * * - * Copyright (c) 2011-2020 by Dirk Clemens <wiimm@wiimm.de> * + * Copyright (c) 2011-2021 by Dirk Clemens <wiimm@wiimm.de> * * * *************************************************************************** * * @@ -546,6 +546,12 @@ void ResetDataCTCODE ( ctcode_t * ctcode, bool create_empty ) //--- misc + if (ctcode->lpar) + { + FREE(ctcode->lpar); + ctcode->lpar = 0; + } + SetupUsedSlotsCTCODE(ctcode); CalcCupRefCTCODE(ctcode,true); #if USE_NEW_CONTAINER_CTC @@ -2651,6 +2657,13 @@ enumError ScanLEBinCTCODE } + //--- copy lecode parameter + + if (!ctcode->lpar) + ctcode->lpar = MALLOC(sizeof(*ctcode->lpar)); + *ctcode->lpar = ana.lpar; + + //--- terminate ResetLEAnalyse(&ana); |
