]> granicus.if.org Git - php/commitdiff
avoid segfaults
authorAntony Dovgal <tony2001@php.net>
Sun, 15 Jan 2006 16:05:49 +0000 (16:05 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 15 Jan 2006 16:05:49 +0000 (16:05 +0000)
ext/spl/spl_iterators.c

index ba752c2b43eaba12f6cda3c45aa899c4e7fafff0..b0d4f37a1f80b7620a66e02d9aa7313d480161a4 100755 (executable)
@@ -929,7 +929,7 @@ static inline spl_dual_it_object* spl_dual_it_construct(INTERNAL_FUNCTION_PARAME
                case DIT_RecursiveRegExIterator: {
                        char *regex;
                        int len, poptions, coptions;
-                       pcre_extra *extra;
+                       pcre_extra *extra = NULL;
 
                        intern->u.regex.flags = 0;
                        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os|l", &zobject, ce_inner, &regex, &len, &intern->u.regex.flags) == FAILURE) {