]> granicus.if.org Git - php/commitdiff
Fixed a compiler warning
authorIlia Alshanetsky <iliaa@php.net>
Fri, 27 Aug 2010 19:43:08 +0000 (19:43 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 27 Aug 2010 19:43:08 +0000 (19:43 +0000)
ext/session/session.c

index fae961f51eeb15f49b790ce405e83e104c0d344f..52bd17753eac74a3e37b60d86ada22c9a49d01a0 100644 (file)
@@ -403,9 +403,8 @@ PHPAPI char *php_session_create_id(PS_CREATE_SID_ARGS) /* {{{ */
        efree(buf);
 
        if (PS(entropy_length) > 0) {
-               unsigned char rbuf[2048];
-
 #ifdef PHP_WIN32
+               unsigned char rbuf[2048];
                size_t toread = PS(entropy_length);
 
                if (php_win32_get_random_bytes(rbuf, (size_t) toread) == SUCCESS){