Skip to content

Commit 8d4be89

Browse files
committed
patch 8.2.2509: tests fail on s390 build
Problem: Tests fail on s390 build. Solution: Initialize trycmd_T.
1 parent a98f8a2 commit 8d4be89

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2509,
753755
/**/
754756
2508,
755757
/**/

src/vim9execute.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,12 +2563,11 @@ call_def_function(
25632563
+ ectx.ec_trystack.ga_len;
25642564
++ectx.ec_trystack.ga_len;
25652565
++trylevel;
2566+
CLEAR_POINTER(trycmd);
25662567
trycmd->tcd_frame_idx = ectx.ec_frame_idx;
25672568
trycmd->tcd_stack_len = ectx.ec_stack.ga_len;
25682569
trycmd->tcd_catch_idx = iptr->isn_arg.try.try_catch;
25692570
trycmd->tcd_finally_idx = iptr->isn_arg.try.try_finally;
2570-
trycmd->tcd_caught = FALSE;
2571-
trycmd->tcd_return = FALSE;
25722571
}
25732572
break;
25742573

@@ -2670,7 +2669,7 @@ call_def_function(
26702669
--ectx.ec_stack.ga_len;
26712670
clear_tv(STACK_TV_BOT(0));
26722671
}
2673-
if (trycmd->tcd_cont)
2672+
if (trycmd->tcd_cont != 0)
26742673
// handling :continue: jump to outer try block or
26752674
// start of the loop
26762675
ectx.ec_iidx = trycmd->tcd_cont;

0 commit comments

Comments
 (0)