summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2016-05-15 10:59:18 -0700
committerFather Chrysostomos <sprout@cpan.org>2016-05-15 14:01:28 -0700
commit8e5993c4dcf9a5b7c84224dd04946a4e49ec96fe (patch)
tree28e9819afd1fb88f272a17eaec5ccfc8617710d6 /dump.c
parent01602aa1039240b47bbb31908b99c74240575514 (diff)
downloadperl-8e5993c4dcf9a5b7c84224dd04946a4e49ec96fe.tar.gz
Dump empty-string ENAMEs as empty strings
They were coming out as ‘(null)’, which is incorrect and confusing.
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index c1303b6b9f..8e11546029 100644
--- a/dump.c
+++ b/dump.c
@@ -1818,7 +1818,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
HEK *const *const endp = HvAUX(sv)->xhv_name_u.xhvnameu_names
+ (count < 0 ? -count : count);
while (hekp < endp) {
- if (HEK_LEN(*hekp)) {
+ if (*hekp) {
SV *tmp = newSVpvs_flags("", SVs_TEMP);
Perl_sv_catpvf(aTHX_ names, ", \"%s\"",
generic_pv_escape(tmp, HEK_KEY(*hekp), HEK_LEN(*hekp), HEK_UTF8(*hekp)));