summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2014-11-04 20:16:45 -0500
committerTony Cook <tony@develop-help.com>2014-11-05 14:55:42 +1100
commit6c4650b32e1142e017440b6cef647077dfed2d1a (patch)
treea95bbe007740172b0f39c1b7d515ba8916591d71 /inline.h
parent1244bd171b8d1fd4b6179e537f7b95c38bd8f099 (diff)
downloadperl-6c4650b32e1142e017440b6cef647077dfed2d1a.tar.gz
char * pv can never be null in S_is_safe_syscall
embed.fnc marks arg pv as NN, and PERL_ARGS_ASSERT_IS_SAFE_SYSCALL contains assert(pv). Remove the test and branch for efficiency.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/inline.h b/inline.h
index 5256e8cc38..109247426f 100644
--- a/inline.h
+++ b/inline.h
@@ -269,7 +269,7 @@ S_is_safe_syscall(pTHX_ const char *pv, STRLEN len, const char *what, const char
PERL_ARGS_ASSERT_IS_SAFE_SYSCALL;
- if (pv && len > 1) {
+ if (len > 1) {
char *null_at;
if (UNLIKELY((null_at = (char *)memchr(pv, 0, len-1)) != NULL)) {
SETERRNO(ENOENT, LIB_INVARG);