]> granicus.if.org Git - php/commitdiff
...
authorkrakjoe <joe.watkins@live.co.uk>
Tue, 6 May 2014 10:22:15 +0000 (11:22 +0100)
committerkrakjoe <joe.watkins@live.co.uk>
Tue, 6 May 2014 10:22:15 +0000 (11:22 +0100)
ext/mcrypt/mcrypt.c

index b9df203c24f0f8fca23392fdf38855b3249520e5..9183ed9b9f802a6aa13abaca4a0c381d41e725c9 100644 (file)
@@ -1303,7 +1303,7 @@ static void php_mcrypt_do_crypt(char* cipher, const char *key, int key_len, cons
    OFB crypt/decrypt data using key key with cipher cipher starting with iv */
 PHP_FUNCTION(mcrypt_encrypt)
 {
-       char *cipher, *key = NULL, *data, *mode, *iv = NULL;
+       char *cipher, *key, *data, *mode, *iv = NULL;
        int cipher_len, key_len, data_len, mode_len, iv_len = 0;
        
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssss|s", &cipher, &cipher_len,