This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41b654e
)
Remove 1 comparison whose result is always the same.
author
James E Keenan
<jkeenan@cpan.org>
Fri, 23 Nov 2018 16:49:03 +0000
(11:49 -0500)
committer
James E Keenan
<jkeenan@cpan.org>
Mon, 26 Nov 2018 01:57:50 +0000
(20:57 -0500)
Per: https://lgtm.com/projects/g/Perl/perl5/alerts/?mode=tree&ruleFocus=
2154840804
For: RT 133686 (partial)
pp_sys.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_sys.c
b/pp_sys.c
index
ab28ed6
..
5dc20b1
100644
(file)
--- a/
pp_sys.c
+++ b/
pp_sys.c
@@
-3824,8
+3824,7
@@
PP(pp_readlink)
len = readlink(tmps, buf, sizeof(buf) - 1);
if (len < 0)
RETPUSHUNDEF;
- if (len != -1)
- buf[len] = '\0';
+ buf[len] = '\0';
PUSHp(buf, len);
RETURN;
#else