]> granicus.if.org Git - php/commitdiff
fix build
authorAntony Dovgal <tony2001@php.net>
Wed, 16 Jul 2008 08:00:43 +0000 (08:00 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 16 Jul 2008 08:00:43 +0000 (08:00 +0000)
ext/mcrypt/mcrypt.c

index 596ebad6b26743f7eb0b785412c1155daf19b418..c317607bc42f7c3b8e91d9c2234f27c627cc4b0b 100644 (file)
@@ -1232,7 +1232,7 @@ int php_mcrypt_iv(php_mcrypt_iv_source source, int size, char **iv_str, int *iv_
                        *iv_len = size;
 #else
                        size_t read_bytes = 0;
-                       int fd;
+                       int fd, n;
 
                        fd = open(source == PHP_MCRYPT_IV_SOURCE_RANDOM ? "/dev/random" : "/dev/urandom", O_RDONLY);
                        if (fd < 0) {