From 7dd38e5e36126e6e56d5d6e020e5df314233fa09 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 16 Nov 2018 20:18:22 +0100 Subject: memisutf8: string can be NULL (if n is 0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libsimple/mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsimple/mem.h b/libsimple/mem.h index 456256d..9b9e9c4 100644 --- a/libsimple/mem.h +++ b/libsimple/mem.h @@ -504,7 +504,7 @@ size_t libsimple_memrcaseeqlen(const void *, size_t, const void *, size_t); * allows a two-byte encoding for NUL * @return 1 if good, 0 on encoding error */ -_LIBSIMPLE_GCC_ONLY(__attribute__((__pure__, __nonnull__, __warn_unused_result__))) +_LIBSIMPLE_GCC_ONLY(__attribute__((__pure__, __warn_unused_result__))) int libsimple_memisutf8(const char *, size_t, int); #ifndef memisutf8 # define memisutf8 libsimple_memisutf8 -- cgit v1.2.3-70-g09d2