projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7919c4
)
pp_sys.c:S_doform: remove redundant null check
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 11 Jan 2014 15:00:06 +0000
(07:00 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Sat, 11 Jan 2014 19:09:35 +0000
(11:09 -0800)
This static function is called from exactly two places that both die
aforehand if cv is null. Further, the cv parameter is already marked
as non-null.
pp_sys.c
patch
|
blob
|
history
diff --git
a/pp_sys.c
b/pp_sys.c
index
277a874
..
b5d84d3
100644
(file)
--- a/
pp_sys.c
+++ b/
pp_sys.c
@@
-1348,7
+1348,7
@@
S_doform(pTHX_ CV *cv, GV *gv, OP *retop)
PERL_ARGS_ASSERT_DOFORM;
- if (
cv &&
CvCLONE(cv))
+ if (CvCLONE(cv))
cv = MUTABLE_CV(sv_2mortal(MUTABLE_SV(cv_clone(cv))));
ENTER;