diff options
author | Daniel Dragan <bulk88@hotmail.com> | 2014-11-04 20:16:45 -0500 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2014-11-05 14:55:42 +1100 |
commit | 6c4650b32e1142e017440b6cef647077dfed2d1a (patch) | |
tree | a95bbe007740172b0f39c1b7d515ba8916591d71 /inline.h | |
parent | 1244bd171b8d1fd4b6179e537f7b95c38bd8f099 (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |