]> granicus.if.org Git - php/commitdiff
initialize variable and make valgrind happy
authorAntony Dovgal <tony2001@php.net>
Thu, 28 Sep 2006 07:22:37 +0000 (07:22 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 28 Sep 2006 07:22:37 +0000 (07:22 +0000)
ext/mbstring/oniguruma/regexec.c

index 1a9567a3d08a3370682752262ead42810bfa0d29..c117a8c43075e3402f746c70b43488428e2de9d9 100644 (file)
@@ -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;                             \