summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-03-08 18:39:46 -0700
committerKarl Williamson <khw@cpan.org>2016-03-09 09:28:40 -0700
commitd95e4a00df6c58639bedd71055b14b95a1cad924 (patch)
treefa8bbbe1781915b4623252b8c8a00d60acba2010 /utf8.c
parent4511cd778b9978d1d54b01038add31872ed66546 (diff)
downloadperl-d95e4a00df6c58639bedd71055b14b95a1cad924.tar.gz
utf8.c: Add missing {}
which caused an if's scope to be less than intended. Spotted by Jarkko Hietaniemi using gcc 6 with the '-Wmisleading-indentation' option
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 3778d7693f..6249ea57b3 100644
--- a/utf8.c
+++ b/utf8.c
@@ -2740,7 +2740,7 @@ Perl__core_swash_init(pTHX_ const char* pkg, const char* name, SV *listsv, I32 m
CopHINTS_set(PL_curcop, PL_hints);
}
if (!SvROK(retval) || SvTYPE(SvRV(retval)) != SVt_PVHV) {
- if (SvPOK(retval))
+ if (SvPOK(retval)) {
/* If caller wants to handle missing properties, let them */
if (flags_p && *flags_p & _CORE_SWASH_INIT_RETURN_IF_UNDEF) {
@@ -2750,6 +2750,7 @@ Perl__core_swash_init(pTHX_ const char* pkg, const char* name, SV *listsv, I32 m
"Can't find Unicode property definition \"%"SVf"\"",
SVfARG(retval));
NOT_REACHED; /* NOTREACHED */
+ }
}
} /* End of calling the module to find the swash */