From 9cad594085da91fb910c000a4c8a068c77c21a5a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 27 Aug 2010 19:43:08 +0000 Subject: [PATCH] Fixed a compiler warning --- ext/session/session.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/session/session.c b/ext/session/session.c index 22428e342b..b913b9b05d 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -329,9 +329,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){ -- 2.40.0