]> granicus.if.org Git - php/commitdiff
init variables
authorAntony Dovgal <tony2001@php.net>
Tue, 5 Sep 2006 13:59:08 +0000 (13:59 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 5 Sep 2006 13:59:08 +0000 (13:59 +0000)
ext/openssl/openssl.c

index e4526a40a056e5b217788f7dec63c844d8b43ada..54993c07108a71fe8e0535d29bef8d908269c553 100644 (file)
@@ -1302,8 +1302,8 @@ static int php_openssl_make_REQ(struct php_x509_request * req, X509_REQ * csr, z
                /* apply values from the dn hash */
                zend_hash_internal_pointer_reset_ex(HASH_OF(dn), &hpos);
                while(zend_hash_get_current_data_ex(HASH_OF(dn), (void**)&item, &hpos) == SUCCESS) {
-                       zstr strindex;
-                       uint strindexlen;
+                       zstr strindex = NULL_ZSTR;
+                       uint strindexlen = 0;
                        ulong intindex;
                        
                        zend_hash_get_current_key_ex(HASH_OF(dn), &strindex, &strindexlen, &intindex, 0, &hpos);