summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-05-23 10:48:30 -0600
committerKarl Williamson <khw@cpan.org>2019-05-24 17:09:30 -0600
commit01b91050db552dbb89e4bd2eb6d089ebd0f28c1e (patch)
tree774463554bd198795c235e3f74cfc58020b7a4d6 /locale.c
parentb377a43cebc7e181f6f2189b957deda3a9af6943 (diff)
downloadperl-01b91050db552dbb89e4bd2eb6d089ebd0f28c1e.tar.gz
locale.c: Fix '%s' directive argument is null
This was just an oversight. THe code doesn't get executed unless it's trying to panic
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/locale.c b/locale.c
index 9fad0cbb3c..bbf9093675 100644
--- a/locale.c
+++ b/locale.c
@@ -5085,6 +5085,7 @@ Perl__is_cur_LC_category_utf8(pTHX_ int category)
s++;
e = strchr(s, UTF8NESS_PREFIX[0]);
if (! e) {
+ e = PL_locale_utf8ness + strlen(PL_locale_utf8ness);
Perl_croak(aTHX_
"panic: %s: %d: Corrupt utf8ness_cache: missing"
" separator %.*s<-- HERE %s\n",