]> granicus.if.org Git - php/commitdiff
fix possible NULL dereference
authorAntony Dovgal <tony2001@php.net>
Mon, 27 Mar 2006 16:43:02 +0000 (16:43 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 27 Mar 2006 16:43:02 +0000 (16:43 +0000)
ext/pdo/pdo_stmt.c

index 012e3914e0f993eb9eaeb0e8090ca516aeb6eeba..0ec5d16d68b0868719d3db9500134655cc8a564a 100755 (executable)
@@ -611,6 +611,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) {