fix uninitialized var that may lead to crash

This commit is contained in:
Stanislav Malyshev 2011-12-26 02:16:37 +00:00
parent d36263b7bb
commit d705b11a1e

View File

@ -4697,7 +4697,7 @@ PHP_FUNCTION(openssl_encrypt)
int data_len, method_len, password_len, iv_len = 0, max_iv_len;
const EVP_CIPHER *cipher_type;
EVP_CIPHER_CTX cipher_ctx;
int i, outlen, keylen;
int i=0, outlen, keylen;
unsigned char *outbuf, *key;
zend_bool free_iv;