summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-08-22 12:25:00 -0600
committerKarl Williamson <khw@cpan.org>2016-08-31 20:32:35 -0600
commit55c5b58bc5035d0aff68aee7ed884342913fd9b8 (patch)
tree3563e80b92ce2952342baec22ffec40680a74d77 /proto.h
parent2fe720e22e785c4e6125ac67a259c4385eb89a64 (diff)
downloadperl-55c5b58bc5035d0aff68aee7ed884342913fd9b8.tar.gz
is_utf8_string_loc() param should not be NULL
It makes no sense to call this function with a NULL parameter, as the whole point of using this function is to set what that param points to. If you don't want this, you should be using the similar function that doesn't have this parameter.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto.h b/proto.h
index 15162aacc9..058fd30f86 100644
--- a/proto.h
+++ b/proto.h
@@ -1606,7 +1606,7 @@ PERL_CALLCONV bool Perl_is_utf8_string(const U8 *s, STRLEN len);
#ifndef NO_MATHOMS
PERL_CALLCONV bool Perl_is_utf8_string_loc(const U8 *s, STRLEN len, const U8 **ep);
#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC \
- assert(s)
+ assert(s); assert(ep)
#endif
PERL_CALLCONV bool Perl_is_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el);
#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN \