From: Antony Dovgal Date: Thu, 28 Sep 2006 07:22:37 +0000 (+0000) Subject: initialize variable and make valgrind happy X-Git-Tag: php-5.2.0RC5~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c4e7a07437b6d9984c4d1279e84ab42bbcb0a8f;p=php initialize variable and make valgrind happy --- diff --git a/ext/mbstring/oniguruma/regexec.c b/ext/mbstring/oniguruma/regexec.c index 1a9567a3d0..c117a8c430 100644 --- a/ext/mbstring/oniguruma/regexec.c +++ b/ext/mbstring/oniguruma/regexec.c @@ -390,6 +390,7 @@ typedef struct { #define STATE_CHECK_BUFF_INIT(msa, str_len, state_num) do { \ (msa).state_check_buff = (void* )0;\ + (msa).state_check_buff_size = 0;\ if ((state_num) > 0 && str_len >= STATE_CHECK_STRING_THRESHOLD_LEN) {\ int size = ((int )((str_len) + 1) * (state_num) + 7) / 8;\ (msa).state_check_buff_size = size; \