PL_InBitmap: fix with -DPERL_GLOBAL_STRUCT_PRIVATE
authorDavid Mitchell <davem@iabyn.com>
Fri, 28 Dec 2018 12:50:14 +0000 (12:50 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 19 Feb 2019 13:28:12 +0000 (13:28 +0000)
Valgrind wasn't happy, as this global var wasn't being initialised to
NULL.

perlvars.h

index d8139c0..ae34a1e 100644 (file)
@@ -304,7 +304,7 @@ PERLVAR(G, utf8_tosimplefold,       SV *)
 PERLVAR(G, utf8_charname_begin, SV *)
 PERLVAR(G, utf8_charname_continue, SV *)
 PERLVAR(G, utf8_mark,  SV *)
-PERLVAR(G, InBitmap,   SV *)
+PERLVARI(G, InBitmap,  SV *, NULL)
 PERLVAR(G, CCC_non0_non230,    SV *)
 
 /* Definitions of user-defined \p{} properties, as the subs that define them