]> granicus.if.org Git - php/commitdiff
Fixed mb_regex_set_options()
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 10 Oct 2002 17:00:36 +0000 (17:00 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 10 Oct 2002 17:00:36 +0000 (17:00 +0000)
ext/mbstring/php_mbregex.c

index 7eeeae8c90b421919e9610ec4257aed3b08c3969..8485824592569e1673f4149cb938c4ce56e63641 100644 (file)
@@ -968,7 +968,7 @@ PHPAPI int php_mb_regex_set_options( int options TSRMLS_DC)
 /* {{{ php_mb_regex_set_options_by_string */
 PHPAPI int php_mb_regex_set_options_by_string( const char *opt_str, int len TSRMLS_DC)
 {
-       int new_opt;
+       int new_opt = 0;
        _php_mb_regex_init_options( opt_str, len, &new_opt, NULL);
        return php_mb_regex_set_options( new_opt TSRMLS_CC);
 }