summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-05-13 05:20:56 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-05-13 05:20:56 +0000
commit3fc84d6d211b0a150b0553bd68f8661a66c0430a (patch)
tree3dd6ea64b6553b7ab21516a516737210a0c308c1 /pp.c
parent69625aa92a91bf4ca9e0af8d5dd7d748e3cdd293 (diff)
downloadperl-3fc84d6d211b0a150b0553bd68f8661a66c0430a.tar.gz
Better be explicit with dangling elses.
p4raw-id: //depot/perl@19507
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/pp.c b/pp.c
index bcf1633c1d..ef8a37db67 100644
--- a/pp.c
+++ b/pp.c
@@ -594,11 +594,12 @@ PP(pp_gelem)
sv = newSVpvn(GvNAME(gv), GvNAMELEN(gv));
break;
case 'P':
- if (strEQ(elem, "PACKAGE"))
- if (HvNAME(GvSTASH(gv)))
- sv = newSVpv(HvNAME(GvSTASH(gv)), 0);
- else
- sv = newSVpv("__ANON__",0);
+ if (strEQ(elem, "PACKAGE")) {
+ if (HvNAME(GvSTASH(gv)))
+ sv = newSVpv(HvNAME(GvSTASH(gv)), 0);
+ else
+ sv = newSVpv("__ANON__",0);
+ }
break;
case 'S':
if (strEQ(elem, "SCALAR"))