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

index ece6eab5de81138525100c5a042bb8bdedf27670..8572462bc13c417a4d4cbbe34f3b8a5b1bd99df0 100644 (file)
@@ -1339,7 +1339,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) {
-                       char * strindex; uint strindexlen;
+                       char * strindex = NULL; 
+                       uint strindexlen = 0;
                        ulong intindex;
                        
                        zend_hash_get_current_key_ex(HASH_OF(dn), &strindex, &strindexlen, &intindex, 0, &hpos);