From a1aa0ce969357a471f335bc9f9362f49f178b1fe Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 26 Sep 2022 15:03:50 +1000 Subject: We freed PL_splitstr in each thread, allocate it in each thread too I also fixed const correctness for PL_splitstr, it was initialized to " " which required it to be const, but the value is only looked at when PL_minus_F is true, so it wasn't necessary. So initialize it to NULL, and duplicate the value in threads. --- intrpvar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intrpvar.h') diff --git a/intrpvar.h b/intrpvar.h index c18170d7f7..4dcc9149f0 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -496,7 +496,7 @@ PERLVAR(I, warnhook, SV *) /* switches */ PERLVAR(I, patchlevel, SV *) PERLVAR(I, localpatches, const char * const *) -PERLVARI(I, splitstr, const char *, " ") +PERLVARI(I, splitstr, char *, NULL) PERLVAR(I, minus_c, bool) PERLVAR(I, minus_n, bool) -- cgit v1.2.1