]> granicus.if.org Git - php/commitdiff
prevent possible NULL dereference
authorAntony Dovgal <tony2001@php.net>
Tue, 28 Mar 2006 20:19:44 +0000 (20:19 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 28 Mar 2006 20:19:44 +0000 (20:19 +0000)
ext/pdo/pdo_stmt.c

index 9e4cbf757ffb39b4e0886bf477e7b0578c5defba..4217e4b81f504d45c2c8b05702a2999fc0b79050 100755 (executable)
@@ -663,6 +663,7 @@ static int do_fetch_class_prepare(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
 
        if (!ce) {
                stmt->fetch.cls.ce = ZEND_STANDARD_CLASS_DEF_PTR;
+               ce = ZEND_STANDARD_CLASS_DEF_PTR;
        }
        
        if (ce->constructor) {