diff options
Diffstat (limited to 'universal.c')
-rw-r--r-- | universal.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/universal.c b/universal.c index 0601645836..705573e9f9 100644 --- a/universal.c +++ b/universal.c @@ -415,11 +415,8 @@ XS(XS_version_new) if ( items == 1 ) { /* no parameter provided */ - if ( sv_isobject(ST(0)) ) { - /* copy existing object */ - vs = ST(0); - } - else { + if ( sv_isobject(ST(0)) ) + { /* create empty object */ vs = sv_newmortal(); sv_setpvn(vs,"",0); |