aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-16 20:18:22 +0100
committerMattias Andrée <maandree@kth.se>2018-11-16 20:18:22 +0100
commit7dd38e5e36126e6e56d5d6e020e5df314233fa09 (patch)
treea241f3e5fb5e259f91d9d226cd1fd56c2de024ea
parentAdd strnisutf8 and memisutf8 (diff)
downloadlibsimple-7dd38e5e36126e6e56d5d6e020e5df314233fa09.tar.gz
libsimple-7dd38e5e36126e6e56d5d6e020e5df314233fa09.tar.bz2
libsimple-7dd38e5e36126e6e56d5d6e020e5df314233fa09.tar.xz
memisutf8: string can be NULL (if n is 0)
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libsimple/mem.h2
1 files changed, 1 insertions, 1 deletions
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