summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-01-09 23:42:25 +0000
committerNicholas Clark <nick@ccl4.org>2005-01-09 23:42:25 +0000
commitaf2250df3612234f2fb1be95c7e91920e7cd92f7 (patch)
tree237a11b6f61e9dde19eac8cf21dfa8c7343c60ac /pp.c
parentff5bdd3795d35132380ba8c98bc3584895f25c76 (diff)
downloadperl-af2250df3612234f2fb1be95c7e91920e7cd92f7.tar.gz
Shorter source code in pp_gelem. (But it compiles to the same size)
p4raw-id: //depot/perl@23774
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pp.c b/pp.c
index c0212b906b..69d8e18b49 100644
--- a/pp.c
+++ b/pp.c
@@ -597,10 +597,8 @@ PP(pp_gelem)
break;
case 'P':
if (strEQ(elem2, "ACKAGE")) {
- if (HvNAME(GvSTASH(gv)))
- sv = newSVpv(HvNAME(GvSTASH(gv)), 0);
- else
- sv = newSVpv("__ANON__",0);
+ char *name = HvNAME(GvSTASH(gv));
+ sv = newSVpv(name ? name : "__ANON__", 0);
}
break;
case 'S':