]> granicus.if.org Git - php/commitdiff
Explicitly ignore mblen(NULL, 0) retval
authorNikita Popov <nikic@php.net>
Thu, 16 Jul 2015 20:39:11 +0000 (22:39 +0200)
committerNikita Popov <nikic@php.net>
Thu, 16 Jul 2015 20:39:11 +0000 (22:39 +0200)
ext/standard/php_string.h

index 8390bd79fefbbecb03e7e02699ec86b5dabcac97..6f10e9a313fd43be28b712ca5086723adc5eef92 100644 (file)
@@ -161,7 +161,7 @@ PHPAPI char *php_strerror(int errnum);
 # define php_mb_reset() memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)))
 #else
 # define php_mblen(ptr, len) mblen(ptr, len)
-# define php_mb_reset() mblen(NULL, 0)
+# define php_mb_reset() php_ignore_value(mblen(NULL, 0))
 #endif
 
 void register_string_constants(INIT_FUNC_ARGS);