From 7dd847ba9c10be196b5d02f9593c642666855470 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 11 Dec 2002 23:54:46 +0000 Subject: Fixed auth module code. Added VALGRIND defines to reduce spurious warnings. Jeremy. (This used to be commit ff3a8d37289216a2cb808406044a7abef1e564d0) --- source3/lib/util_str.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/lib/util_str.c') diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index e7a4fe7bb3..7d056e98d2 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -1519,3 +1519,12 @@ void rfc1738_unescape(char *buf) } } +#ifdef VALGRIND +size_t valgrind_strlen(const char *s) +{ + size_t count; + for(count = 0; *s++; count++) + ; + return count; +} +#endif -- cgit