andrei Mon Oct 9 19:54:39 2006 UTC Modified files: /php-src/ext/pcre php_pcre.c Log: Initialize optional vars. http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.207&r2=1.208&diff_format=u Index: php-src/ext/pcre/php_pcre.c diff -u php-src/ext/pcre/php_pcre.c:1.207 php-src/ext/pcre/php_pcre.c:1.208 --- php-src/ext/pcre/php_pcre.c:1.207 Sun Oct 8 13:34:23 2006 +++ php-src/ext/pcre/php_pcre.c Mon Oct 9 19:54:38 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.207 2006/10/08 13:34:23 bjori Exp $ */ +/* $Id: php_pcre.c,v 1.208 2006/10/09 19:54:38 andrei Exp $ */ /* TODO * php_pcre_replace_impl(): @@ -1356,7 +1356,7 @@ *replace, *subject, **subject_entry, - *zcount; + *zcount = NULL; char *result; int result_len; long limit = -1; @@ -1674,7 +1674,7 @@ int in_str_len; char *in_str; /* Input string argument */ char *in_str_end; /* End of the input string */ - int delim_len; + int delim_len = 0; char *delim = NULL; /* Additional delimiter argument */ char *out_str, /* Output string with quoted characters */ *p, /* Iterator for input string */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php