diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2010-08-27 19:43:08 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2010-08-27 19:43:08 +0000 |
commit | a12d2bf7479edfe91f8fd4ddf2a2032ef32e07f6 (patch) | |
tree | c4e44f1d201e0172a83763fccb13fbd159b490de | |
parent | 3c3ddb39b4c973d183167c9853b5b331d8a42670 (diff) | |
download | php-git-a12d2bf7479edfe91f8fd4ddf2a2032ef32e07f6.tar.gz |
Fixed a compiler warning
-rw-r--r-- | ext/session/session.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index fae961f51e..52bd17753e 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -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){ |